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
ConstructorDescriptionAbstractDiscoveredOperation
(DiscoveredOperationMethod operationMethod, OperationInvoker invoker) Create a newAbstractDiscoveredOperation
instance. -
Method Summary
Modifier and TypeMethodDescriptionprotected void
appendFields
(ToStringCreator creator) getType()
Returns thetype
of the operation.invoke
(InvocationContext context) Invoke the underlying operation using the givencontext
.toString()
-
Constructor Details
-
AbstractDiscoveredOperation
public AbstractDiscoveredOperation(DiscoveredOperationMethod operationMethod, OperationInvoker invoker) Create a newAbstractDiscoveredOperation
instance.- Parameters:
operationMethod
- the method backing the operationinvoker
- the operation invoker to use
-
-
Method Details
-
getOperationMethod
-
getType
Description copied from interface:Operation
Returns thetype
of the operation. -
invoke
Description copied from interface:Operation
Invoke the underlying operation using the givencontext
. Results intended to be returned in the body of the response should additionally implementOperationResponseBody
. -
toString
-
appendFields
-