public class ReflectiveOperationInvoker extends Object implements OperationInvoker
OperationInvoker that invokes an operation using reflection.| Constructor and Description |
|---|
ReflectiveOperationInvoker(Object target,
OperationMethod operationMethod,
ParameterValueMapper parameterValueMapper)
Creates a new
ReflectiveOperationInvoker that will invoke the given
method on the given target. |
| Modifier and Type | Method and Description |
|---|---|
Object |
invoke(InvocationContext context)
Invoke the underlying operation using the given
context. |
String |
toString() |
public ReflectiveOperationInvoker(Object target, OperationMethod operationMethod, ParameterValueMapper parameterValueMapper)
ReflectiveOperationInvoker that will invoke the given
method on the given target. The given parameterMapper will
be used to map parameters to the required types and the given
parameterNameMapper will be used map parameters by name.target - the target of the reflective calloperationMethod - the method infoparameterValueMapper - the parameter mapperpublic Object invoke(InvocationContext context)
OperationInvokercontext.invoke in interface OperationInvokercontext - the context to use to invoke the operationnull