public class ReflectiveOperationInvoker extends Object implements OperationInvoker
OperationInvoker that invokes an operation using reflection.| Constructor and Description |
|---|
ReflectiveOperationInvoker(OperationParameterMapper parameterMapper,
Object target,
Method method)
Creates a new {code ReflectiveOperationInvoker} that will invoke the given
method on the given target. |
| Modifier and Type | Method and Description |
|---|---|
Object |
invoke(Map<String,Object> arguments)
Invoke the underlying operation using the given
arguments. |
public ReflectiveOperationInvoker(OperationParameterMapper parameterMapper, Object target, Method method)
method on the given target. The given parameterMapper will
be used to map parameters to the required types.parameterMapper - the parameter mappertarget - the target of the reflective callmethod - the method to callpublic Object invoke(Map<String,Object> arguments)
OperationInvokerarguments.invoke in interface OperationInvokerarguments - the arguments to pass to the operationnullCopyright © 2017 Pivotal Software, Inc.. All rights reserved.