import org.opendaylight.yangtools.yang.binding.RpcService;
import org.opendaylight.yangtools.yang.common.QName;
+@Deprecated(forRemoval = true, since = "9.0.3")
final class ClassBasedRpcServiceInvoker extends AbstractMappedRpcInvoker<String> {
private static final LoadingCache<Class<? extends RpcService>, RpcServiceInvoker> INVOKERS =
CacheBuilder.newBuilder().weakKeys()
*
* @param type RpcService interface, which was generated from model.
* @return Cached instance of {@link RpcServiceInvoker} for supplied RPC type.
+ * @deprecated This method is not used by the adapter and is scheduled for removal.
*/
+ @Deprecated(forRemoval = true, since = "9.0.3")
public static RpcServiceInvoker from(final Class<? extends RpcService> type) {
return ClassBasedRpcServiceInvoker.instanceFor(type);
}
import org.opendaylight.yangtools.yang.binding.RpcService;
import org.opendaylight.yangtools.yang.common.QName;
+@Deprecated(forRemoval = true, since = "9.0.3")
public class ClassBasedRpcServiceInvokerTest {
-
@Test
public void qnameToKeyTest() throws Exception {
final ClassBasedRpcServiceInvoker classBasedRpcServiceInvoker =
QName.create(QNameModule.create(XMLNamespace.of("testURI"), Revision.of("2017-10-26")), "test"), method)));
}
+ @Deprecated(forRemoval = true)
@Test(expected = IllegalArgumentException.class)
public void fromWithExceptionTest() {
RpcServiceInvoker.from(RpcService.class);