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)
OperationInvoker
arguments
.invoke
in interface OperationInvoker
arguments
- the arguments to pass to the operationnull
Copyright © 2017 Pivotal Software, Inc.. All rights reserved.