X-Git-Url: https://git.opendaylight.org/gerrit/gitweb?a=blobdiff_plain;f=opendaylight%2Fmd-sal%2Fsal-binding-api%2Fsrc%2Fmain%2Fjava%2Forg%2Fopendaylight%2Fcontroller%2Fsal%2Fbinding%2Fapi%2FBindingAwareBroker.java;h=5e24560853e733c42744512366721a4d8b12823c;hb=51e91f6bdcc88c5aa96f956e516d31dbb5e5d5e0;hp=5b700703bc0b522357f42ec2580e9b64e94c924e;hpb=89bbb529da1ea9e338b2b03192bd912003f7f00e;p=controller.git
diff --git a/opendaylight/md-sal/sal-binding-api/src/main/java/org/opendaylight/controller/sal/binding/api/BindingAwareBroker.java b/opendaylight/md-sal/sal-binding-api/src/main/java/org/opendaylight/controller/sal/binding/api/BindingAwareBroker.java
index 5b700703bc..5e24560853 100644
--- a/opendaylight/md-sal/sal-binding-api/src/main/java/org/opendaylight/controller/sal/binding/api/BindingAwareBroker.java
+++ b/opendaylight/md-sal/sal-binding-api/src/main/java/org/opendaylight/controller/sal/binding/api/BindingAwareBroker.java
@@ -9,8 +9,6 @@ package org.opendaylight.controller.sal.binding.api;
import org.opendaylight.controller.md.sal.common.api.routing.RoutedRegistration;
import org.opendaylight.controller.sal.binding.api.BindingAwareProvider.ProviderFunctionality;
-import org.opendaylight.controller.sal.binding.api.data.DataBrokerService;
-import org.opendaylight.controller.sal.binding.api.data.DataProviderService;
import org.opendaylight.yangtools.concepts.ObjectRegistration;
import org.opendaylight.yangtools.yang.binding.BaseIdentity;
import org.opendaylight.yangtools.yang.binding.InstanceIdentifier;
@@ -39,8 +37,8 @@ import org.osgi.framework.BundleContext;
*
Notification Service - see {@link NotificationService} and
* {@link NotificationProviderService}
* 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.binding.api.data.DataBrokerService} and
+ * {@link org.opendaylight.controller.sal.binding.api.data.DataProviderService}
*
*
* The services are exposed via session.
@@ -52,9 +50,6 @@ import org.osgi.framework.BundleContext;
*
* For more information about session-based access see {@link ConsumerContext}
* and {@link ProviderContext}
- *
- *
- *
*/
public interface BindingAwareBroker {
/**
@@ -122,9 +117,6 @@ public interface BindingAwareBroker {
* functionality) for the consumer and provides access to the SAL
* infrastructure services and other functionality provided by
* {@link Provider}s.
- *
- *
- *
*/
public interface ConsumerContext extends RpcConsumerRegistry {
@@ -137,8 +129,6 @@ public interface BindingAwareBroker {
* @return Session specific implementation of service
*/
T getSALService(Class service);
-
-
}
/**
@@ -166,11 +156,29 @@ public interface BindingAwareBroker {
void unregisterFunctionality(ProviderFunctionality functionality);
}
+ /**
+ * Represents an RPC implementation registration. Users should call the
+ * {@link ObjectRegistration#close close} method when the registration is no longer needed.
+ *
+ * @param the implemented RPC service interface
+ */
public interface RpcRegistration extends ObjectRegistration {
+ /**
+ * Returns the implemented RPC service interface.
+ */
Class getServiceType();
+
+ @Override
+ void close();
}
+ /**
+ * Represents a routed RPC implementation registration. Users should call the
+ * {@link RoutedRegistration#close close} method when the registration is no longer needed.
+ *
+ * @param the implemented RPC service interface
+ */
public interface RoutedRpcRegistration extends RpcRegistration,
RoutedRegistration, InstanceIdentifier>, T> {