类 WebEndpointDiscoverer
java.lang.Object
org.springframework.boot.actuate.endpoint.annotation.EndpointDiscoverer<ExposableWebEndpoint,WebOperation>
org.springframework.boot.actuate.endpoint.web.annotation.WebEndpointDiscoverer
@ImportRuntimeHints(org.springframework.boot.actuate.endpoint.web.annotation.WebEndpointDiscoverer.WebEndpointDiscovererRuntimeHints.class)
public class WebEndpointDiscoverer
extends EndpointDiscoverer<ExposableWebEndpoint,WebOperation>
implements WebEndpointsSupplier
- 从以下版本开始:
- 2.0.0
- 作者:
- Phillip Webb
-
嵌套类概要
从类继承的嵌套类/接口 org.springframework.boot.actuate.endpoint.annotation.EndpointDiscoverer
EndpointDiscoverer.OperationKey -
构造器概要
构造器构造器说明WebEndpointDiscoverer(ApplicationContext applicationContext, ParameterValueMapper parameterValueMapper, EndpointMediaTypes endpointMediaTypes, List<PathMapper> endpointPathMappers, Collection<OperationInvokerAdvisor> invokerAdvisors, Collection<EndpointFilter<ExposableWebEndpoint>> filters) 已过时, 待删除: 此 API 元素将从以后的版本中删除。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. -
方法概要
修饰符和类型方法说明protected 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.从类继承的方法 org.springframework.boot.actuate.endpoint.annotation.EndpointDiscoverer
createEndpoint, getEndpoints, getEndpointType, isEndpointTypeExposed, isExtensionTypeExposed, isInvocable从类继承的方法 java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait从接口继承的方法 org.springframework.boot.actuate.endpoint.EndpointsSupplier
getEndpoints
-
构造器详细资料
-
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) 已过时, 待删除: 此 API 元素将从以后的版本中删除。since 3.4.0 for removal in 4.0.0 in favor ofWebEndpointDiscoverer(ApplicationContext, ParameterValueMapper, EndpointMediaTypes, List, List, Collection, Collection, Collection)Create a newWebEndpointDiscovererinstance.- 参数:
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.- 参数:
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- 从以下版本开始:
- 3.4.0
-
-
方法详细资料
-
createEndpoint
protected ExposableWebEndpoint createEndpoint(Object endpointBean, EndpointId id, Access defaultAccess, Collection<WebOperation> operations) 从类复制的说明:EndpointDiscovererFactory method called to create theendpoint.- 指定者:
createEndpoint在类中EndpointDiscoverer<ExposableWebEndpoint,WebOperation> - 参数:
endpointBean- the source endpoint beanid- the ID of the endpointdefaultAccess- access to the endpoint that is permitted by defaultoperations- the endpoint operations- 返回:
- a created endpoint (a
DiscoveredEndpointis recommended)
-
createOperation
protected WebOperation createOperation(EndpointId endpointId, DiscoveredOperationMethod operationMethod, OperationInvoker invoker) 从类复制的说明:EndpointDiscovererFactory method to create anendpoint operation.- 指定者:
createOperation在类中EndpointDiscoverer<ExposableWebEndpoint,WebOperation> - 参数:
endpointId- the endpoint idoperationMethod- the operation methodinvoker- the invoker to use- 返回:
- a created operation
-
createOperationKey
从类复制的说明:EndpointDiscovererCreate anEndpointDiscoverer.OperationKeyfor the given operation.- 指定者:
createOperationKey在类中EndpointDiscoverer<ExposableWebEndpoint,WebOperation> - 参数:
operation- the source operation- 返回:
- the operation key
-
WebEndpointDiscoverer(ApplicationContext, ParameterValueMapper, EndpointMediaTypes, List, List, Collection, Collection, Collection)