Class AbstractDiscoveredOperation
- java.lang.Object
- org.springframework.boot.actuate.endpoint.annotation.AbstractDiscoveredOperation
- All Implemented Interfaces:
Operation
public abstract class AbstractDiscoveredOperation extends Object implements Operation
Abstract base class forendpoints operations
discovered by aEndpointDiscoverer
.- Since:
- 2.0.0
Constructor Summary
Constructors Constructor Description AbstractDiscoveredOperation(DiscoveredOperationMethod operationMethod, OperationInvoker invoker)
Create a newAbstractDiscoveredOperation
instance.
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description 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()
Constructor Detail
AbstractDiscoveredOperation
public AbstractDiscoveredOperation(DiscoveredOperationMethod operationMethod, OperationInvoker invoker)
Create a newAbstractDiscoveredOperation
instance.- Parameters:
operationMethod
- the method backing the operationinvoker
- the operation invoker to use
Method Detail
getOperationMethod
public OperationMethod getOperationMethod()
getType
public OperationType getType()
Description copied from interface:Operation
Returns thetype
of the operation.
invoke
public Object invoke(InvocationContext context)
Description copied from interface:Operation
Invoke the underlying operation using the givencontext
.
appendFields
protected void appendFields(org.springframework.core.style.ToStringCreator creator)