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=db20a13991f8356acf88b3212c4722356aa70fc1;hb=fd8c7a6e7445ca9788c2557caa9da5af8c8a2153;hp=84e0561b9fa9c36b33fad20569ffa55b56ea84d6;hpb=a251833f27fd00040904e2df316cd707c8129d1e;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 84e0561b9f..db20a13991 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 @@ -126,7 +126,7 @@ public interface BindingAwareBroker { * * */ - public interface ConsumerContext { + public interface ConsumerContext extends RpcConsumerRegistry { /** * Returns a session specific instance (implementation) of requested @@ -138,15 +138,7 @@ public interface BindingAwareBroker { */ T getSALService(Class service); - /** - * Returns a session specific instance (implementation) of requested - * YANG module implentation / service provided by consumer. - * - * @param service - * Broker service - * @return Session specific implementation of service - */ - T getRpcService(Class module); + } /** @@ -165,36 +157,18 @@ public interface BindingAwareBroker { * functionality provided by other {@link BindingAwareConsumer}s. * */ - public interface ProviderContext extends ConsumerContext { - /** - * Registers an global RpcService implementation. - * - * @param type - * @param implementation - * @return - */ - RpcRegistration addRpcImplementation(Class type, T implementation) - throws IllegalStateException; - - RpcRegistration addMountRpcImplementation(Class type, InstanceIdentifier mount, - T implementation) throws IllegalStateException; - - RoutedRpcRegistration addRoutedRpcImplementation(Class type, T implementation) - throws IllegalStateException; + public interface ProviderContext extends ConsumerContext, RpcProviderRegistry { + @Deprecated void registerFunctionality(ProviderFunctionality functionality); + @Deprecated void unregisterFunctionality(ProviderFunctionality functionality); } public interface RpcRegistration extends Registration { - /** - * - * @return instance for which registration does exists. - */ - @Deprecated - T getService(); + Class getServiceType(); } public interface RoutedRpcRegistration extends RpcRegistration, @@ -212,6 +186,15 @@ public interface BindingAwareBroker { @Deprecated void registerInstance(Class context, InstanceIdentifier instance); + /** + * Unregister particular instance identifier to be processed by this + * RpcService + * + * Deprecated in favor of {@link RoutedRegistration#unregisterPath(Object, Object)}. + * + * @param context + * @param instance + */ @Deprecated void unregisterInstance(Class context, InstanceIdentifier instance); }