org.springframework.boot.actuate.endpoint.annotation

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

  • java.lang.Object
    • org.springframework.boot.actuate.endpoint.annotation.EndpointDiscoverer<E,O>
    • Method Detail

      • isExtensionExposed

        protected boolean isExtensionExposed(Object extensionBean)
        Determine if an extension bean should be exposed. Subclasses can override this method to provide additional logic.
        Parameters:
        extensionBean - the extension bean
        Returns:
        true if the extension is exposed
      • isEndpointExposed

        protected boolean isEndpointExposed(Object endpointBean)
        Determine if an endpoint bean should be exposed. Subclasses can override this method to provide additional logic.
        Parameters:
        endpointBean - the endpoint bean
        Returns:
        true if the endpoint is exposed
      • getEndpointType

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

        protected abstract E createEndpoint(Object endpointBean,
                                            String id,
                                            boolean enabledByDefault,
                                            Collection<O> operations)
        Factory method called to create the endpoint.
        Parameters:
        endpointBean - the source endpoint bean
        id - the ID of the endpoint
        enabledByDefault - if the endpoint is enabled by default
        operations - the endpoint operations
        Returns:
        a created endpoint (a DiscoveredEndpoint is recommended)
      • createOperation

        protected abstract O createOperation(String endpointId,
                                             DiscoveredOperationMethod operationMethod,
                                             OperationInvoker invoker)
        Factory method to create an endpoint operation.
        Parameters:
        endpointId - the endpoint id
        operationMethod - the operation method
        invoker - the invoker to use
        Returns:
        a created operation