类 EndpointDiscoverer<E extends ExposableEndpoint<O>,O extends Operation>

java.lang.Object
org.springframework.boot.actuate.endpoint.annotation.EndpointDiscoverer<E,O>
类型参数:
E - the endpoint type
O - the operation type
所有已实现的接口:
EndpointsSupplier<E>
直接已知子类:
ControllerEndpointDiscoverer, JmxEndpointDiscoverer, ServletEndpointDiscoverer, WebEndpointDiscoverer

public abstract class EndpointDiscoverer<E extends ExposableEndpoint<O>,O extends Operation> extends Object implements EndpointsSupplier<E>
A Base for EndpointsSupplier implementations that discover @Endpoint beans and @EndpointExtension beans in an application context.
从以下版本开始:
2.0.0
作者:
Andy Wilkinson, Stephane Nicoll, Phillip Webb
  • 构造器详细资料

  • 方法详细资料

    • getEndpoints

      public final Collection<E> getEndpoints()
      从接口复制的说明: EndpointsSupplier
      Return the provided endpoints.
      指定者:
      getEndpoints 在接口中 EndpointsSupplier<E extends ExposableEndpoint<O>>
      返回:
      the endpoints
    • isInvocable

      protected boolean isInvocable(E endpoint)
      Returns whether the endpoint is invocable and should be included in the discovered endpoints. The default implementation returns true if the endpoint has any operations, otherwise false.
      参数:
      endpoint - the endpoint to assess
      返回:
      true if the endpoint is invocable, otherwise false.
      从以下版本开始:
      3.4.0
    • isExtensionTypeExposed

      protected boolean isExtensionTypeExposed(Class<?> extensionBeanType)
      Determine if an extension bean should be exposed. Subclasses can override this method to provide additional logic.
      参数:
      extensionBeanType - the extension bean type
      返回:
      true if the extension is exposed
    • isEndpointTypeExposed

      protected boolean isEndpointTypeExposed(Class<?> beanType)
      Determine if an endpoint bean should be exposed. Subclasses can override this method to provide additional logic.
      参数:
      beanType - the endpoint bean type
      返回:
      true if the endpoint is exposed
    • getEndpointType

      protected Class<? extends E> getEndpointType()
    • createEndpoint

      @Deprecated(since="3.4.0", forRemoval=true) protected E createEndpoint(Object endpointBean, EndpointId id, boolean enabledByDefault, Collection<O> operations)
      已过时, 待删除: 此 API 元素将从以后的版本中删除。
      since 3.4.0 for removal in 4.0.0 in favor of createEndpoint(Object, EndpointId, Access, Collection)
      Factory method called to create the endpoint.
      参数:
      endpointBean - the source endpoint bean
      id - the ID of the endpoint
      enabledByDefault - if the endpoint is enabled by default
      operations - the endpoint operations
      返回:
      a created endpoint (a DiscoveredEndpoint is recommended)
    • createEndpoint

      protected abstract E createEndpoint(Object endpointBean, EndpointId id, Access defaultAccess, Collection<O> operations)
      Factory method called to create the endpoint.
      参数:
      endpointBean - the source endpoint bean
      id - the ID of the endpoint
      defaultAccess - access to the endpoint that is permitted by default
      operations - the endpoint operations
      返回:
      a created endpoint (a DiscoveredEndpoint is recommended)
    • createOperation

      protected abstract O createOperation(EndpointId endpointId, DiscoveredOperationMethod operationMethod, OperationInvoker invoker)
      Factory method to create an endpoint operation.
      参数:
      endpointId - the endpoint id
      operationMethod - the operation method
      invoker - the invoker to use
      返回:
      a created operation
    • createOperationKey

      protected abstract EndpointDiscoverer.OperationKey createOperationKey(O operation)
      Create an EndpointDiscoverer.OperationKey for the given operation.
      参数:
      operation - the source operation
      返回:
      the operation key