Fixup checkstyle
[controller.git] / opendaylight / md-sal / sal-binding-api / src / main / java / org / opendaylight / controller / sal / binding / api / RpcProviderRegistry.java
index 268906f450099fe6aca6f0269840b50ab616230a..3e05f17238415f3f31f8aae3cba2c91561471176 100644 (file)
@@ -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
+public interface RpcProviderRegistry extends RpcConsumerRegistry,
         RouteChangePublisher<RpcContextIdentifier, InstanceIdentifier<?>> {
     /**
      * 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.
+     *
      * <p>
-     * 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.
      */
     <T extends RpcService> RoutedRpcRegistration<T> addRoutedRpcImplementation(Class<T> serviceInterface,
-                                                                               T implementation)
-            throws IllegalStateException;
+            T implementation) throws IllegalStateException;
 }