类 AbstractDiscoveredOperation
- java.lang.Object
- org.springframework.boot.actuate.endpoint.annotation.AbstractDiscoveredOperation
- 所有已实现的接口:
Operation
public abstract class AbstractDiscoveredOperation extends Object implements Operation
Abstract base class forendpoints operations
discovered by aEndpointDiscoverer
.- 从以下版本开始:
- 2.0.0
构造器概要
构造器 构造器 说明 AbstractDiscoveredOperation(DiscoveredOperationMethod operationMethod, OperationInvoker invoker)
Create a newAbstractDiscoveredOperation
instance.
方法概要
所有方法 实例方法 具体方法 修饰符和类型 方法 说明 protected void
appendFields(org.springframework.core.style.ToStringCreator creator)
OperationMethod
getOperationMethod()
OperationType
getType()
Returns thetype
of the operation.Object
invoke(InvocationContext context)
Invoke the underlying operation using the givencontext
.String
toString()
构造器详细资料
AbstractDiscoveredOperation
public AbstractDiscoveredOperation(DiscoveredOperationMethod operationMethod, OperationInvoker invoker)
Create a newAbstractDiscoveredOperation
instance.- 参数:
operationMethod
- the method backing the operationinvoker
- the operation invoker to use
方法详细资料
getOperationMethod
public OperationMethod getOperationMethod()
getType
public OperationType getType()
从接口复制的说明:Operation
Returns thetype
of the operation.
invoke
public Object invoke(InvocationContext context)
从接口复制的说明:Operation
Invoke the underlying operation using the givencontext
.
appendFields
protected void appendFields(org.springframework.core.style.ToStringCreator creator)