@Beta public class BindingDOMOperationServiceAdapter extends Object implements RpcActionConsumerRegistry
Modifier and Type | Field and Description |
---|---|
static BindingDOMAdapterBuilder.Factory<RpcActionConsumerRegistry> |
BUILDER_FACTORY |
Constructor and Description |
---|
BindingDOMOperationServiceAdapter(DOMRpcService domRpcService,
DOMActionService domActionService,
BindingToNormalizedNodeCodec codec) |
Modifier and Type | Method and Description |
---|---|
<T extends Action<? extends TreeNode,?,?,?>> |
getActionService(Class<T> serviceInterface)
Returns an implementation of a requested Action service.
|
<T extends ListAction<? extends TreeNode,?,?,?>> |
getListActionService(Class<T> serviceInterface)
Returns an implementation of a requested ListAction service.
|
<T extends Rpc<?,?>> |
getRpcService(Class<T> rpc)
Returns an implementation of a requested RPC service.
|
public static final BindingDOMAdapterBuilder.Factory<RpcActionConsumerRegistry> BUILDER_FACTORY
public BindingDOMOperationServiceAdapter(DOMRpcService domRpcService, DOMActionService domActionService, BindingToNormalizedNodeCodec codec)
public <T extends Rpc<?,?>> T getRpcService(Class<T> rpc)
RpcActionConsumerRegistry
The returned instance is not an actual implementation of the RPC service interface, but a proxy implementation of the interface that forwards to an actual implementation, if any.
getRpcService
in interface RpcActionConsumerRegistry
T
- interface typerpc
- given service interfacepublic <T extends Action<? extends TreeNode,?,?,?>> T getActionService(Class<T> serviceInterface)
RpcActionConsumerRegistry
The returned instance is not an actual implementation of the Action service interface, but a proxy implementation of the interface that forwards to an actual implementation, if any.
getActionService
in interface RpcActionConsumerRegistry
T
- interface typeserviceInterface
- given service interfacepublic <T extends ListAction<? extends TreeNode,?,?,?>> T getListActionService(Class<T> serviceInterface)
RpcActionConsumerRegistry
The returned instance is not an actual implementation of the ListAction service interface, but a proxy implementation of the interface that forwards to an actual implementation, if any.
getListActionService
in interface RpcActionConsumerRegistry
T
- interface typeserviceInterface
- given service interfaceCopyright © 2019 OpenDaylight. All rights reserved.