public class AnnotationBasedInvocationHandler extends Object implements MethodInvocationHandler
| Modifier and Type | Class and Description |
|---|---|
static interface |
AnnotationBasedInvocationHandler.InvocationContext |
static interface |
AnnotationBasedInvocationHandler.Out<T> |
MethodInvocationHandler.NodeIdUnknownHandler, MethodInvocationHandler.NotImplementedHandler| Constructor and Description |
|---|
AnnotationBasedInvocationHandler(ServerNodeMap nodeMap,
Argument[] inputArguments,
Argument[] outputArguments,
Object annotatedObject) |
AnnotationBasedInvocationHandler(ServerNodeMap nodeMap,
List<Argument> inputArguments,
List<Argument> outputArguments,
Object annotatedObject) |
| Modifier and Type | Method and Description |
|---|---|
static AnnotationBasedInvocationHandler |
fromAnnotatedObject(ServerNodeMap nodeMap,
Object annotatedObject) |
Argument[] |
getInputArguments() |
Argument[] |
getOutputArguments() |
void |
invoke(AccessContext accessContext,
CallMethodRequest request,
CompletableFuture<CallMethodResult> future)
Invoke the given
CallMethodRequest and complete future when finished. |
public AnnotationBasedInvocationHandler(ServerNodeMap nodeMap, Argument[] inputArguments, Argument[] outputArguments, Object annotatedObject)
public Argument[] getInputArguments()
public Argument[] getOutputArguments()
public void invoke(AccessContext accessContext, CallMethodRequest request, CompletableFuture<CallMethodResult> future)
MethodInvocationHandlerCallMethodRequest and complete future when finished.
Under no circumstances should the future be completed exceptionally.
invoke in interface MethodInvocationHandleraccessContext - the AccessContext.request - the CallMethodRequest.future - the CompletableFuture to complete.public static AnnotationBasedInvocationHandler fromAnnotatedObject(ServerNodeMap nodeMap, Object annotatedObject) throws Exception
ExceptionCopyright © 2018. All rights reserved.