X-Git-Url: https://git.opendaylight.org/gerrit/gitweb?a=blobdiff_plain;f=binding%2Fyang-binding%2Fsrc%2Fmain%2Fjava%2Forg%2Fopendaylight%2Fyangtools%2Fyang%2Fbinding%2Futil%2FRpcServiceInvoker.java;h=43ac1b9789b1aadb8f89ec3f60f0c0dced1d0a58;hb=9d7d03933651bdb8774275583c179a6a7dc38771;hp=b6b9b47bbe4e246ad40bf6cff89cad6364f87a89;hpb=c875e567d2c681879f272259ed47f5bfcc25509a;p=mdsal.git diff --git a/binding/yang-binding/src/main/java/org/opendaylight/yangtools/yang/binding/util/RpcServiceInvoker.java b/binding/yang-binding/src/main/java/org/opendaylight/yangtools/yang/binding/util/RpcServiceInvoker.java index b6b9b47bbe..43ac1b9789 100644 --- a/binding/yang-binding/src/main/java/org/opendaylight/yangtools/yang/binding/util/RpcServiceInvoker.java +++ b/binding/yang-binding/src/main/java/org/opendaylight/yangtools/yang/binding/util/RpcServiceInvoker.java @@ -24,18 +24,18 @@ import org.slf4j.LoggerFactory; /** * Provides single method invocation of RPCs on supplied instance. * - * Rpc Service invoker provides common invocation interface for any subtype of {@link RpcService}. + *

+ * RPC Service invoker provides common invocation interface for any subtype of {@link RpcService}. * via {@link #invokeRpc(RpcService, QName, DataObject)} method. */ public abstract class RpcServiceInvoker { private static final Logger LOG = LoggerFactory.getLogger(RpcServiceInvoker.class); /** - * Creates RPCServiceInvoker for specified RpcService type + * Creates RPCServiceInvoker for specified RpcService type. * * @param type RpcService interface, which was generated from model. * @return Cached instance of {@link RpcServiceInvoker} for supplied RPC type. - * */ public static RpcServiceInvoker from(final Class type) { return ClassBasedRpcServiceInvoker.instanceFor(type); @@ -54,7 +54,8 @@ public abstract class RpcServiceInvoker { for (QName qname : qnameToMethod.keySet()) { if (module != null) { if (!module.equals(qname.getModule())) { - LOG.debug("QNames from different modules {} and {}, falling back to QName map", module, qname.getModule()); + LOG.debug("QNames from different modules {} and {}, falling back to QName map", module, + qname.getModule()); return QNameRpcServiceInvoker.instanceFor(qnameToMethod); } } else { @@ -74,5 +75,6 @@ public abstract class RpcServiceInvoker { * @param input Input data for RPC. * @return Future which will complete once rpc procesing is finished. */ - public abstract Future> invokeRpc(@Nonnull final RpcService impl, @Nonnull final QName rpcName, @Nullable final DataObject input); + public abstract Future> invokeRpc(@Nonnull RpcService impl, @Nonnull QName rpcName, + @Nullable DataObject input); }