Moved MD SAL from sal/yang-prototype to md-sal
[controller.git] / opendaylight / md-sal / sal-dom-api / src / main / java / org / opendaylight / controller / sal / core / api / Broker.java
similarity index 97%
rename from opendaylight/sal/yang-prototype/sal/sal-core-api/src/main/java/org/opendaylight/controller/sal/core/api/Broker.java
rename to opendaylight/md-sal/sal-dom-api/src/main/java/org/opendaylight/controller/sal/core/api/Broker.java
index f26ed901a569f9c585b9b18be456acbb055de257..b2c35507837dab1dde9ed73e5f9b635161613d98 100644 (file)
@@ -16,6 +16,7 @@ import org.opendaylight.controller.sal.core.api.notify.NotificationService;
 import org.opendaylight.yangtools.yang.common.QName;
 import org.opendaylight.yangtools.yang.common.RpcResult;
 import org.opendaylight.yangtools.yang.data.api.CompositeNode;
+import org.osgi.framework.BundleContext;
 
 
 /**
@@ -77,13 +78,14 @@ public interface Broker {
      * 
      * @param cons
      *            Consumer to be registered.
+     * @param context 
      * @return a session specific to consumer registration
      * @throws IllegalArgumentException
      *             If the consumer is <code>null</code>.
      * @throws IllegalStateException
      *             If the consumer is already registered.
      */
-    ConsumerSession registerConsumer(Consumer cons);
+    ConsumerSession registerConsumer(Consumer cons, BundleContext context);
 
     /**
      * Registers the {@link Provider}, which will use the SAL layer.
@@ -108,13 +110,14 @@ public interface Broker {
      * 
      * @param prov
      *            Provider to be registered.
+     * @param context 
      * @return a session unique to the provider registration.
      * @throws IllegalArgumentException
      *             If the provider is <code>null</code>.
      * @throws IllegalStateException
      *             If the consumer is already registered.
      */
-    ProviderSession registerProvider(Provider prov);
+    ProviderSession registerProvider(Provider prov, BundleContext context);
 
     /**
      * {@link Consumer} specific access to the SAL functionality.