类 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 newAbstractDiscoveredOperation
instance. -
方法概要
修饰符和类型方法说明protected void
appendFields
(ToStringCreator creator) getType()
Returns thetype
of the operation.invoke
(InvocationContext context) Invoke the underlying operation using the givencontext
.toString()
-
构造器详细资料
-
AbstractDiscoveredOperation
public AbstractDiscoveredOperation(DiscoveredOperationMethod operationMethod, OperationInvoker invoker) Create a newAbstractDiscoveredOperation
instance.- 参数:
operationMethod
- the method backing the operationinvoker
- the operation invoker to use
-
-
方法详细资料
-
getOperationMethod
-
getType
从接口复制的说明:Operation
Returns thetype
of the operation. -
invoke
从接口复制的说明:Operation
Invoke the underlying operation using the givencontext
. Results intended to be returned in the body of the response should additionally implementOperationResponseBody
. -
toString
-
appendFields
-