类 AbstractDiscoveredOperation
java.lang.Object
org.springframework.boot.actuate.endpoint.annotation.AbstractDiscoveredOperation
- 所有已实现的接口:
Operation
Abstract base class for
endpoints operations discovered by a
EndpointDiscoverer.- 从以下版本开始:
- 2.0.0
- 作者:
- Phillip Webb
-
构造器概要
构造器构造器说明AbstractDiscoveredOperation(DiscoveredOperationMethod operationMethod, OperationInvoker invoker) Create a newAbstractDiscoveredOperationinstance. -
方法概要
修饰符和类型方法说明protected voidappendFields(ToStringCreator creator) getType()Returns thetypeof the operation.invoke(InvocationContext context) Invoke the underlying operation using the givencontext.toString()
-
构造器详细资料
-
AbstractDiscoveredOperation
public AbstractDiscoveredOperation(DiscoveredOperationMethod operationMethod, OperationInvoker invoker) Create a newAbstractDiscoveredOperationinstance.- 参数:
operationMethod- the method backing the operationinvoker- the operation invoker to use
-
-
方法详细资料
-
getOperationMethod
-
getType
从接口复制的说明:OperationReturns thetypeof the operation. -
invoke
从接口复制的说明:OperationInvoke the underlying operation using the givencontext. Results intended to be returned in the body of the response should additionally implementOperationResponseBody. -
toString
-
appendFields
-