Class ServletEndpointDiscoverer
java.lang.Object
org.springframework.boot.actuate.endpoint.annotation.EndpointDiscoverer<ExposableServletEndpoint,Operation>
org.springframework.boot.actuate.endpoint.web.annotation.ServletEndpointDiscoverer
- All Implemented Interfaces:
EndpointsSupplier<ExposableServletEndpoint>,ServletEndpointsSupplier
@ImportRuntimeHints(org.springframework.boot.actuate.endpoint.web.annotation.ServletEndpointDiscoverer.ServletEndpointDiscovererRuntimeHints.class)
@Deprecated(since="3.3.0",
forRemoval=true)
public class ServletEndpointDiscoverer
extends EndpointDiscoverer<ExposableServletEndpoint,Operation>
implements ServletEndpointsSupplier
Deprecated, for removal: This API element is subject to removal in a future version.
- Since:
- 2.0.0
- Author:
- Phillip Webb
-
Nested Class Summary
Nested classes/interfaces inherited from class org.springframework.boot.actuate.endpoint.annotation.EndpointDiscoverer
EndpointDiscoverer.OperationKey -
Constructor Summary
ConstructorsConstructorDescriptionServletEndpointDiscoverer(ApplicationContext applicationContext, List<PathMapper> endpointPathMappers, Collection<EndpointFilter<ExposableServletEndpoint>> filters) Deprecated, for removal: This API element is subject to removal in a future version.Create a newServletEndpointDiscovererinstance. -
Method Summary
Modifier and TypeMethodDescriptionprotected ExposableServletEndpointcreateEndpoint(Object endpointBean, EndpointId id, Access defaultAccess, Collection<Operation> operations) Deprecated, for removal: This API element is subject to removal in a future version.Factory method called to create theendpoint.protected OperationcreateOperation(EndpointId endpointId, DiscoveredOperationMethod operationMethod, OperationInvoker invoker) Deprecated, for removal: This API element is subject to removal in a future version.Factory method to create anendpoint operation.protected EndpointDiscoverer.OperationKeycreateOperationKey(Operation operation) Deprecated, for removal: This API element is subject to removal in a future version.Create anEndpointDiscoverer.OperationKeyfor the given operation.protected booleanisEndpointTypeExposed(Class<?> beanType) Deprecated, for removal: This API element is subject to removal in a future version.Determine if an endpoint bean should be exposed.protected booleanisInvocable(ExposableServletEndpoint endpoint) Deprecated, for removal: This API element is subject to removal in a future version.Returns whether the endpoint is invocable and should be included in the discovered endpoints.Methods inherited from class org.springframework.boot.actuate.endpoint.annotation.EndpointDiscoverer
createEndpoint, getEndpoints, getEndpointType, isExtensionTypeExposedMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.springframework.boot.actuate.endpoint.EndpointsSupplier
getEndpoints
-
Constructor Details
-
ServletEndpointDiscoverer
public ServletEndpointDiscoverer(ApplicationContext applicationContext, List<PathMapper> endpointPathMappers, Collection<EndpointFilter<ExposableServletEndpoint>> filters) Deprecated, for removal: This API element is subject to removal in a future version.Create a newServletEndpointDiscovererinstance.- Parameters:
applicationContext- the source application contextendpointPathMappers- the endpoint path mappersfilters- filters to apply
-
-
Method Details
-
isEndpointTypeExposed
Deprecated, for removal: This API element is subject to removal in a future version.Description copied from class:EndpointDiscovererDetermine if an endpoint bean should be exposed. Subclasses can override this method to provide additional logic.- Overrides:
isEndpointTypeExposedin classEndpointDiscoverer<ExposableServletEndpoint,Operation> - Parameters:
beanType- the endpoint bean type- Returns:
trueif the endpoint is exposed
-
createEndpoint
protected ExposableServletEndpoint createEndpoint(Object endpointBean, EndpointId id, Access defaultAccess, Collection<Operation> operations) Deprecated, for removal: This API element is subject to removal in a future version.Description copied from class:EndpointDiscovererFactory method called to create theendpoint.- Specified by:
createEndpointin classEndpointDiscoverer<ExposableServletEndpoint,Operation> - Parameters:
endpointBean- the source endpoint beanid- the ID of the endpointdefaultAccess- access to the endpoint that is permitted by defaultoperations- the endpoint operations- Returns:
- a created endpoint (a
DiscoveredEndpointis recommended)
-
createOperation
protected Operation createOperation(EndpointId endpointId, DiscoveredOperationMethod operationMethod, OperationInvoker invoker) Deprecated, for removal: This API element is subject to removal in a future version.Description copied from class:EndpointDiscovererFactory method to create anendpoint operation.- Specified by:
createOperationin classEndpointDiscoverer<ExposableServletEndpoint,Operation> - Parameters:
endpointId- the endpoint idoperationMethod- the operation methodinvoker- the invoker to use- Returns:
- a created operation
-
createOperationKey
Deprecated, for removal: This API element is subject to removal in a future version.Description copied from class:EndpointDiscovererCreate anEndpointDiscoverer.OperationKeyfor the given operation.- Specified by:
createOperationKeyin classEndpointDiscoverer<ExposableServletEndpoint,Operation> - Parameters:
operation- the source operation- Returns:
- the operation key
-
isInvocable
Deprecated, for removal: This API element is subject to removal in a future version.Description copied from class:EndpointDiscovererReturns whether the endpoint is invocable and should be included in the discovered endpoints. The default implementation returnstrueif the endpoint has any operations, otherwisefalse.- Overrides:
isInvocablein classEndpointDiscoverer<ExposableServletEndpoint,Operation> - Parameters:
endpoint- the endpoint to assess- Returns:
trueif the endpoint is invocable, otherwisefalse.
-
@Endpointand@WebEndpoint