public class ReflectiveOperationInvoker extends java.lang.Object implements OperationInvoker
OperationInvoker that invokes an operation using reflection.| 构造器和说明 |
|---|
ReflectiveOperationInvoker(java.lang.Object target,
OperationMethod operationMethod,
ParameterValueMapper parameterValueMapper)
Creates a new
ReflectiveOperationInvoker that will invoke the given
method on the given target. |
| 限定符和类型 | 方法和说明 |
|---|---|
java.lang.Object |
invoke(InvocationContext context)
Invoke the underlying operation using the given
context. |
java.lang.String |
toString() |
public ReflectiveOperationInvoker(java.lang.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 java.lang.Object invoke(InvocationContext context)
OperationInvokercontext.invoke 在接口中 OperationInvokercontext - the context to use to invoke the operationnullpublic java.lang.String toString()
toString 在类中 java.lang.Object