Class WebEndpointDiscoverer
java.lang.Object
org.springframework.boot.actuate.endpoint.annotation.EndpointDiscoverer<ExposableWebEndpoint,WebOperation>
org.springframework.boot.actuate.endpoint.web.annotation.WebEndpointDiscoverer
- All Implemented Interfaces:
EndpointsSupplier<ExposableWebEndpoint>,WebEndpointsSupplier
- Direct Known Subclasses:
CloudFoundryWebEndpointDiscoverer
@ImportRuntimeHints(org.springframework.boot.actuate.endpoint.web.annotation.WebEndpointDiscoverer.WebEndpointDiscovererRuntimeHints.class)
public class WebEndpointDiscoverer
extends EndpointDiscoverer<ExposableWebEndpoint,WebOperation>
implements WebEndpointsSupplier
- 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
ConstructorsConstructorDescriptionWebEndpointDiscoverer(ApplicationContext applicationContext, ParameterValueMapper parameterValueMapper, EndpointMediaTypes endpointMediaTypes, List<PathMapper> endpointPathMappers, Collection<OperationInvokerAdvisor> invokerAdvisors, Collection<EndpointFilter<ExposableWebEndpoint>> filters) Deprecated, for removal: This API element is subject to removal in a future version.WebEndpointDiscoverer(ApplicationContext applicationContext, ParameterValueMapper parameterValueMapper, EndpointMediaTypes endpointMediaTypes, List<PathMapper> endpointPathMappers, List<AdditionalPathsMapper> additionalPathsMappers, Collection<OperationInvokerAdvisor> invokerAdvisors, Collection<EndpointFilter<ExposableWebEndpoint>> endpointFilters, Collection<OperationFilter<WebOperation>> operationFilters) Create a newWebEndpointDiscovererinstance. -
Method Summary
Modifier and TypeMethodDescriptionprotected ExposableWebEndpointcreateEndpoint(Object endpointBean, EndpointId id, Access defaultAccess, Collection<WebOperation> operations) Factory method called to create theendpoint.protected WebOperationcreateOperation(EndpointId endpointId, DiscoveredOperationMethod operationMethod, OperationInvoker invoker) Factory method to create anendpoint operation.protected EndpointDiscoverer.OperationKeycreateOperationKey(WebOperation operation) Create anEndpointDiscoverer.OperationKeyfor the given operation.Methods inherited from class org.springframework.boot.actuate.endpoint.annotation.EndpointDiscoverer
createEndpoint, getEndpoints, getEndpointType, isEndpointTypeExposed, isExtensionTypeExposed, isInvocableMethods 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
-
WebEndpointDiscoverer
@Deprecated(since="3.4.0", forRemoval=true) public WebEndpointDiscoverer(ApplicationContext applicationContext, ParameterValueMapper parameterValueMapper, EndpointMediaTypes endpointMediaTypes, List<PathMapper> endpointPathMappers, Collection<OperationInvokerAdvisor> invokerAdvisors, Collection<EndpointFilter<ExposableWebEndpoint>> filters) Deprecated, for removal: This API element is subject to removal in a future version.since 3.4.0 for removal in 4.0.0 in favor ofWebEndpointDiscoverer(ApplicationContext, ParameterValueMapper, EndpointMediaTypes, List, List, Collection, Collection, Collection)Create a newWebEndpointDiscovererinstance.- Parameters:
applicationContext- the source application contextparameterValueMapper- the parameter value mapperendpointMediaTypes- the endpoint media typesendpointPathMappers- the endpoint path mappersinvokerAdvisors- invoker advisors to applyfilters- filters to apply
-
WebEndpointDiscoverer
public WebEndpointDiscoverer(ApplicationContext applicationContext, ParameterValueMapper parameterValueMapper, EndpointMediaTypes endpointMediaTypes, List<PathMapper> endpointPathMappers, List<AdditionalPathsMapper> additionalPathsMappers, Collection<OperationInvokerAdvisor> invokerAdvisors, Collection<EndpointFilter<ExposableWebEndpoint>> endpointFilters, Collection<OperationFilter<WebOperation>> operationFilters) Create a newWebEndpointDiscovererinstance.- Parameters:
applicationContext- the source application contextparameterValueMapper- the parameter value mapperendpointMediaTypes- the endpoint media typesendpointPathMappers- the endpoint path mappersadditionalPathsMappers- theinvokerAdvisors- invoker advisors to applyendpointFilters- endpoint filters to applyoperationFilters- operation filters to apply- Since:
- 3.4.0
-
-
Method Details
-
createEndpoint
protected ExposableWebEndpoint createEndpoint(Object endpointBean, EndpointId id, Access defaultAccess, Collection<WebOperation> operations) Description copied from class:EndpointDiscovererFactory method called to create theendpoint.- Specified by:
createEndpointin classEndpointDiscoverer<ExposableWebEndpoint,WebOperation> - 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 WebOperation createOperation(EndpointId endpointId, DiscoveredOperationMethod operationMethod, OperationInvoker invoker) Description copied from class:EndpointDiscovererFactory method to create anendpoint operation.- Specified by:
createOperationin classEndpointDiscoverer<ExposableWebEndpoint,WebOperation> - Parameters:
endpointId- the endpoint idoperationMethod- the operation methodinvoker- the invoker to use- Returns:
- a created operation
-
createOperationKey
Description copied from class:EndpointDiscovererCreate anEndpointDiscoverer.OperationKeyfor the given operation.- Specified by:
createOperationKeyin classEndpointDiscoverer<ExposableWebEndpoint,WebOperation> - Parameters:
operation- the source operation- Returns:
- the operation key
-
WebEndpointDiscoverer(ApplicationContext, ParameterValueMapper, EndpointMediaTypes, List, List, Collection, Collection, Collection)