public class ReflectiveOperationInvoker extends Object implements OperationInvoker
OperationInvoker
that invokes an operation using reflection.Constructor and Description |
---|
ReflectiveOperationInvoker(Object target,
OperationMethodInfo methodInfo,
ParameterMapper parameterMapper)
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 . |
String |
toString() |
public ReflectiveOperationInvoker(Object target, OperationMethodInfo methodInfo, ParameterMapper parameterMapper)
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 callmethodInfo
- the method infoparameterMapper
- the parameter mapperpublic Object invoke(Map<String,Object> arguments)
OperationInvoker
arguments
.invoke
in interface OperationInvoker
arguments
- the arguments to pass to the operationnull
Copyright © 2017 Pivotal Software, Inc.. All rights reserved.