X-Git-Url: https://git.opendaylight.org/gerrit/gitweb?p=controller.git;a=blobdiff_plain;f=opendaylight%2Fmd-sal%2Fsal-dom-api%2Fsrc%2Fmain%2Fjava%2Forg%2Fopendaylight%2Fcontroller%2Fsal%2Fcore%2Fapi%2FBroker.java;h=b48f6cb61a6fd6a1c4c8555292fd0ff4a821b652;hp=72df8cb55348cb08fec5a4bad8d35daa125e2ecf;hb=3b144c5e66f5e4d14ec881fb553d118e53efd82a;hpb=31a2298fc02482baae6507596ccc8c842d3e3dfb diff --git a/opendaylight/md-sal/sal-dom-api/src/main/java/org/opendaylight/controller/sal/core/api/Broker.java b/opendaylight/md-sal/sal-dom-api/src/main/java/org/opendaylight/controller/sal/core/api/Broker.java index 72df8cb553..b48f6cb61a 100644 --- a/opendaylight/md-sal/sal-dom-api/src/main/java/org/opendaylight/controller/sal/core/api/Broker.java +++ b/opendaylight/md-sal/sal-dom-api/src/main/java/org/opendaylight/controller/sal/core/api/Broker.java @@ -11,10 +11,6 @@ import java.util.Set; import java.util.concurrent.Future; import org.opendaylight.controller.md.sal.common.api.routing.RoutedRegistration; -import org.opendaylight.controller.sal.core.api.data.DataBrokerService; -import org.opendaylight.controller.sal.core.api.data.DataProviderService; -import org.opendaylight.controller.sal.core.api.notify.NotificationPublishService; -import org.opendaylight.controller.sal.core.api.notify.NotificationService; import org.opendaylight.yangtools.concepts.ListenerRegistration; import org.opendaylight.yangtools.concepts.ObjectRegistration; import org.opendaylight.yangtools.yang.common.QName; @@ -39,11 +35,11 @@ import org.osgi.framework.BundleContext; *
  • RPC Invocation - see {@link ConsumerSession#rpc(QName, CompositeNode)}, * {@link ProviderSession#addRpcImplementation(QName, RpcImplementation)} and * {@link RpcImplementation} - *
  • Notification Service - see {@link NotificationService} and - * {@link NotificationPublishService} + *
  • Notification Service - see {@link org.opendaylight.controller.sal.core.api.notify.NotificationService} and + * {@link org.opendaylight.controller.sal.core.api.notify.NotificationPublishService} *
  • Functionality and Data model - *
  • Data Store access and modification - see {@link DataBrokerService} and - * {@link DataProviderService} + *
  • Data Store access and modification - see {@link org.opendaylight.controller.sal.core.api.data.DataBrokerService} and + * {@link org.opendaylight.controller.sal.core.api.data.DataProviderService} * * * The services are exposed via session. @@ -82,13 +78,18 @@ public interface Broker { * * @param cons * Consumer to be registered. - * @param context * @return a session specific to consumer registration * @throws IllegalArgumentException * If the consumer is null. * @throws IllegalStateException * If the consumer is already registered. */ + ConsumerSession registerConsumer(Consumer cons); + + /* + * @deprecated Use registerConsumer(Consumer cons) instead (BundleContext is no longer used) + */ + @Deprecated ConsumerSession registerConsumer(Consumer cons, BundleContext context); /** @@ -114,13 +115,18 @@ 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 null. * @throws IllegalStateException * If the consumer is already registered. */ + ProviderSession registerProvider(Provider prov); + + /* + * @deprecated Use registerProvider(Provider cons) instead (BundleContext is no longer used) + */ + @Deprecated ProviderSession registerProvider(Provider prov, BundleContext context); /** @@ -227,7 +233,7 @@ public interface Broker { * functionality of the provider from the system. */ @Override - public void close(); + void close(); @Override boolean isClosed(); @@ -244,7 +250,6 @@ public interface Broker { void close(); } - public interface RoutedRpcRegistration extends RpcRegistration, - RoutedRegistration { + public interface RoutedRpcRegistration extends RpcRegistration, RoutedRegistration { } }