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%2FRpcProviderRegistry.java;h=a501c021977649d0e00423b9f9b2c1363cc1c1aa;hb=fad74e7ef14ab24e347559b60f98d40a0ac8f90b;hp=268906f450099fe6aca6f0269840b50ab616230a;hpb=f1a918f69b787dd422a09e4e8fd83a1d52a72f83;p=controller.git diff --git a/opendaylight/md-sal/sal-binding-api/src/main/java/org/opendaylight/controller/sal/binding/api/RpcProviderRegistry.java b/opendaylight/md-sal/sal-binding-api/src/main/java/org/opendaylight/controller/sal/binding/api/RpcProviderRegistry.java index 268906f450..a501c02197 100644 --- a/opendaylight/md-sal/sal-binding-api/src/main/java/org/opendaylight/controller/sal/binding/api/RpcProviderRegistry.java +++ b/opendaylight/md-sal/sal-binding-api/src/main/java/org/opendaylight/controller/sal/binding/api/RpcProviderRegistry.java @@ -253,9 +253,11 @@ import org.opendaylight.yangtools.yang.binding.RpcService; * on failure rather than purposely throwing unchecked exceptions if at all possible. * While unchecked exceptions will fail the returned {@link java.util.concurrent.Future Future}, * using the intended RpcResult to convey the error information is more user-friendly. + * + * @deprecated Use {@link org.opendaylight.mdsal.binding.api.RpcProviderService} instead */ -public interface RpcProviderRegistry extends // - RpcConsumerRegistry, // +@Deprecated(forRemoval = true) +public interface RpcProviderRegistry extends RpcConsumerRegistry, RouteChangePublisher> { /** * Registers a global implementation of the provided RPC service interface. @@ -274,9 +276,9 @@ public interface RpcProviderRegistry extends // /** * Registers an implementation of the given routed RPC service interface. + * *

- * See the {@link RpcProviderRegistry class} documentation for information and example on - * how to use routed RPCs. + * See the {@link RpcProviderRegistry class} documentation for information and example on how to use routed RPCs. * * @param serviceInterface the YANG-generated interface of the RPC Service for which to register. * @param implementation the implementation instance to register. @@ -284,11 +286,8 @@ public interface RpcProviderRegistry extends // * implementation via invoking RoutedRpcRegistration#registerPath(Class, InstanceIdentifer). * {@link RoutedRpcRegistration#close()} should be called to unregister the implementation * and all previously registered paths when no longer needed. - * - * @throws IllegalStateException - * if the supplied RPC interface is not a routed RPC type. + * @throws IllegalStateException if the supplied RPC interface is not a routed RPC type. */ RoutedRpcRegistration addRoutedRpcImplementation(Class serviceInterface, - T implementation) - throws IllegalStateException; + T implementation) throws IllegalStateException; }