类 ReflectiveOperationInvoker
java.lang.Object
org.springframework.boot.actuate.endpoint.invoke.reflect.ReflectiveOperationInvoker
- 所有已实现的接口:
OperationInvoker
An
OperationInvoker that invokes an operation using reflection.- 从以下版本开始:
- 2.0.0
- 作者:
- Andy Wilkinson, Stephane Nicoll, Phillip Webb
-
构造器概要
构造器构造器说明ReflectiveOperationInvoker(Object target, OperationMethod operationMethod, ParameterValueMapper parameterValueMapper) Creates a newReflectiveOperationInvokerthat will invoke the givenmethodon the giventarget. -
方法概要
修饰符和类型方法说明invoke(InvocationContext context) Invoke the underlying operation using the givencontext.toString()
-
构造器详细资料
-
ReflectiveOperationInvoker
public ReflectiveOperationInvoker(Object target, OperationMethod operationMethod, ParameterValueMapper parameterValueMapper) Creates a newReflectiveOperationInvokerthat will invoke the givenmethodon the giventarget. The givenparameterMapperwill be used to map parameters to the required types and the givenparameterNameMapperwill be used map parameters by name.- 参数:
target- the target of the reflective calloperationMethod- the method infoparameterValueMapper- the parameter mapper
-
-
方法详细资料
-
invoke
从接口复制的说明:OperationInvokerInvoke the underlying operation using the givencontext.- 指定者:
invoke在接口中OperationInvoker- 参数:
context- the context to use to invoke the operation- 返回:
- the result of the operation, may be
null
-
toString
-