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 for endpoints operations discovered by a EndpointDiscoverer.
Since:
2.0.0
Author:
Phillip Webb
  • Constructor Details

  • Method Details

    • getOperationMethod

      public OperationMethod getOperationMethod()
    • getType

      public OperationType getType()
      Description copied from interface: Operation
      Returns the type of the operation.
      Specified by:
      getType in interface Operation
      Returns:
      the type
    • invoke

      public Object invoke(InvocationContext context)
      Description copied from interface: Operation
      Invoke the underlying operation using the given context.
      Specified by:
      invoke in interface Operation
      Parameters:
      context - the context in to use when invoking the operation
      Returns:
      the result of the operation, may be null
    • toString

      public String toString()
      Overrides:
      toString in class Object
    • appendFields

      protected void appendFields(ToStringCreator creator)