public class AnnotationBasedInvocationHandler extends Object implements MethodInvocationHandler
| Modifier and Type | Class and Description |
|---|---|
static interface |
AnnotationBasedInvocationHandler.InvocationContext |
static interface |
AnnotationBasedInvocationHandler.Out<T> |
MethodInvocationHandler.NodeIdUnknownHandler| Constructor and Description |
|---|
AnnotationBasedInvocationHandler(UaNamespace nodeManager,
com.digitalpetri.opcua.stack.core.types.structured.Argument[] inputArguments,
com.digitalpetri.opcua.stack.core.types.structured.Argument[] outputArguments,
Object annotatedObject) |
AnnotationBasedInvocationHandler(UaNamespace nodeManager,
List<com.digitalpetri.opcua.stack.core.types.structured.Argument> inputArguments,
List<com.digitalpetri.opcua.stack.core.types.structured.Argument> outputArguments,
Object annotatedObject) |
| Modifier and Type | Method and Description |
|---|---|
static AnnotationBasedInvocationHandler |
fromAnnotatedObject(UaNamespace namespace,
Object annotatedObject) |
com.digitalpetri.opcua.stack.core.types.structured.Argument[] |
getInputArguments() |
com.digitalpetri.opcua.stack.core.types.structured.Argument[] |
getOutputArguments() |
void |
invoke(com.digitalpetri.opcua.stack.core.types.structured.CallMethodRequest request,
CompletableFuture<com.digitalpetri.opcua.stack.core.types.structured.CallMethodResult> future)
Invoke the given
CallMethodRequest and complete future when finished. |
public AnnotationBasedInvocationHandler(UaNamespace nodeManager, com.digitalpetri.opcua.stack.core.types.structured.Argument[] inputArguments, com.digitalpetri.opcua.stack.core.types.structured.Argument[] outputArguments, Object annotatedObject)
public AnnotationBasedInvocationHandler(UaNamespace nodeManager, List<com.digitalpetri.opcua.stack.core.types.structured.Argument> inputArguments, List<com.digitalpetri.opcua.stack.core.types.structured.Argument> outputArguments, Object annotatedObject)
public com.digitalpetri.opcua.stack.core.types.structured.Argument[] getInputArguments()
public com.digitalpetri.opcua.stack.core.types.structured.Argument[] getOutputArguments()
public void invoke(com.digitalpetri.opcua.stack.core.types.structured.CallMethodRequest request,
CompletableFuture<com.digitalpetri.opcua.stack.core.types.structured.CallMethodResult> future)
MethodInvocationHandlerCallMethodRequest and complete future when finished.
Under no circumstances should the future be completed exceptionally.
invoke in interface MethodInvocationHandlerrequest - the CallMethodRequest.future - the CompletableFuture to complete.public static AnnotationBasedInvocationHandler fromAnnotatedObject(UaNamespace namespace, Object annotatedObject) throws Exception
ExceptionCopyright © 2015. All rights reserved.