public class ReflectionBasedOperationDefinition<B> extends java.lang.Object implements OperationDefinition<B>
| Constructor and Description |
|---|
ReflectionBasedOperationDefinition(java.lang.reflect.Method method) |
| Modifier and Type | Method and Description |
|---|---|
ArgumentDefinition[] |
getArgumentDefinitions() |
java.lang.String |
getDescription() |
protected OperationInvoker<B> |
getInvoker() |
protected OperationInvoker<B> |
getInvokerFor(java.lang.reflect.Method method) |
protected java.lang.reflect.Method |
getMethod() |
java.lang.String |
getName() |
java.lang.Class<?> |
getReturnType() |
java.lang.Object |
invoke(B bean,
java.lang.Object[] arguments) |
void |
setDescription(java.lang.String description) |
void |
setInvoker(OperationInvoker<B> invoker) |
void |
setName(java.lang.String name) |
java.lang.String |
toString() |
@Nonnull
public ReflectionBasedOperationDefinition(@Nonnull
java.lang.reflect.Method method)
@Nonnull public java.lang.String getName()
getName in interface MemberDefinition@Nullable public java.lang.String getDescription()
getDescription in interface MemberDefinition@Nonnull public java.lang.Class<?> getReturnType()
getReturnType in interface OperationDefinition<B>@Nonnull public ArgumentDefinition[] getArgumentDefinitions()
getArgumentDefinitions in interface OperationDefinition<B>public java.lang.Object invoke(@Nonnull
B bean,
@Nonnull
java.lang.Object[] arguments)
throws java.lang.Exception
invoke in interface OperationDefinition<B>java.lang.Exceptionpublic void setName(@Nullable
java.lang.String name)
public void setDescription(@Nullable
java.lang.String description)
public void setInvoker(@Nullable
OperationInvoker<B> invoker)
@Nonnull protected OperationInvoker<B> getInvokerFor(@Nonnull java.lang.reflect.Method method)
@Nonnull protected java.lang.reflect.Method getMethod()
@Nonnull protected OperationInvoker<B> getInvoker()
public java.lang.String toString()
toString in class java.lang.ObjectCopyright © 2016 echocat. All Rights Reserved.