Class AbstractDiscoveredOperation
java.lang.Object
org.springframework.boot.actuate.endpoint.annotation.AbstractDiscoveredOperation
- All Implemented Interfaces:
Operation
Abstract base class for
endpoints operations discovered by a
EndpointDiscoverer.- Since:
- 2.0.0
- Author:
- Phillip Webb
-
Constructor Summary
ConstructorsConstructorDescriptionAbstractDiscoveredOperation(DiscoveredOperationMethod operationMethod, OperationInvoker invoker) Create a newAbstractDiscoveredOperationinstance. -
Method Summary
Modifier and TypeMethodDescriptionprotected voidappendFields(ToStringCreator creator) getType()Returns thetypeof the operation.invoke(InvocationContext context) Invoke the underlying operation using the givencontext.toString()
-
Constructor Details
-
AbstractDiscoveredOperation
public AbstractDiscoveredOperation(DiscoveredOperationMethod operationMethod, OperationInvoker invoker) Create a newAbstractDiscoveredOperationinstance.- Parameters:
operationMethod- the method backing the operationinvoker- the operation invoker to use
-
-
Method Details
-
getOperationMethod
-
getType
Description copied from interface:OperationReturns thetypeof the operation. -
invoke
Description copied from interface:OperationInvoke the underlying operation using the givencontext. Results intended to be returned in the body of the response should additionally implementOperationResponseBody. -
toString
-
appendFields
-