public class ReflectionBasedOperationInvoker<B> extends java.lang.Object implements OperationInvoker<B>
| Modifier and Type | Class and Description |
|---|---|
protected static class |
ReflectionBasedOperationInvoker.ArgumentDefinitionImpl |
| Constructor and Description |
|---|
ReflectionBasedOperationInvoker(java.lang.reflect.Method method) |
| Modifier and Type | Method and Description |
|---|---|
protected Argument |
findArgumentAnnotationIn(java.lang.annotation.Annotation[] annotations) |
protected ArgumentDefinition |
getArgumentDefinitionFor(java.lang.Class<?> type,
java.lang.annotation.Annotation[] annotation,
int index) |
ArgumentDefinition[] |
getArgumentDefinitions() |
protected ArgumentDefinition[] |
getArgumentDefinitionsFor(java.lang.reflect.Method method) |
java.lang.Class<?> |
getReturnType() |
java.lang.Object |
invoke(B bean,
java.lang.Object[] arguments) |
public ReflectionBasedOperationInvoker(@Nonnull
java.lang.reflect.Method method)
@Nonnull protected ArgumentDefinition[] getArgumentDefinitionsFor(@Nonnull java.lang.reflect.Method method)
@Nonnull public java.lang.Class<?> getReturnType()
getReturnType in interface OperationInvoker<B>@Nonnull public ArgumentDefinition[] getArgumentDefinitions()
getArgumentDefinitions in interface OperationInvoker<B>public java.lang.Object invoke(@Nonnull
B bean,
@Nonnull
java.lang.Object[] arguments)
throws java.lang.Exception
invoke in interface OperationInvoker<B>java.lang.Exception@Nonnull protected ArgumentDefinition getArgumentDefinitionFor(@Nonnull java.lang.Class<?> type, @Nonnull java.lang.annotation.Annotation[] annotation, int index)
@Nullable protected Argument findArgumentAnnotationIn(@Nonnull java.lang.annotation.Annotation[] annotations)
Copyright © 2016 echocat. All Rights Reserved.