类 WebEndpointDiscoverer
- java.lang.Object
- org.springframework.boot.actuate.endpoint.annotation.EndpointDiscoverer<ExposableWebEndpoint,WebOperation>
- org.springframework.boot.actuate.endpoint.web.annotation.WebEndpointDiscoverer
public class WebEndpointDiscoverer extends EndpointDiscoverer<ExposableWebEndpoint,WebOperation> implements WebEndpointsSupplier
- 从以下版本开始:
- 2.0.0
嵌套类概要
从类继承的嵌套类/接口 org.springframework.boot.actuate.endpoint.annotation.EndpointDiscoverer
EndpointDiscoverer.OperationKey
构造器概要
构造器 构造器 说明 WebEndpointDiscoverer(org.springframework.context.ApplicationContext applicationContext, ParameterValueMapper parameterValueMapper, EndpointMediaTypes endpointMediaTypes, List<PathMapper> endpointPathMappers, Collection<OperationInvokerAdvisor> invokerAdvisors, Collection<EndpointFilter<ExposableWebEndpoint>> filters)
Create a newWebEndpointDiscoverer
instance.
方法概要
所有方法 实例方法 具体方法 修饰符和类型 方法 说明 protected ExposableWebEndpoint
createEndpoint(Object endpointBean, EndpointId id, boolean enabledByDefault, Collection<WebOperation> operations)
Factory method called to create theendpoint
.protected WebOperation
createOperation(EndpointId endpointId, DiscoveredOperationMethod operationMethod, OperationInvoker invoker)
Factory method to create anendpoint operation
.protected EndpointDiscoverer.OperationKey
createOperationKey(WebOperation operation)
Create anEndpointDiscoverer.OperationKey
for the given operation.从类继承的方法 org.springframework.boot.actuate.endpoint.annotation.EndpointDiscoverer
getEndpoints, getEndpointType, isEndpointExposed, isExtensionExposed
从类继承的方法 java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
从接口继承的方法 org.springframework.boot.actuate.endpoint.EndpointsSupplier
getEndpoints
构造器详细资料
WebEndpointDiscoverer
public WebEndpointDiscoverer(org.springframework.context.ApplicationContext applicationContext, ParameterValueMapper parameterValueMapper, EndpointMediaTypes endpointMediaTypes, List<PathMapper> endpointPathMappers, Collection<OperationInvokerAdvisor> invokerAdvisors, Collection<EndpointFilter<ExposableWebEndpoint>> filters)
Create a newWebEndpointDiscoverer
instance.- 参数:
applicationContext
- the source application contextparameterValueMapper
- the parameter value mapperendpointMediaTypes
- the endpoint media typesendpointPathMappers
- the endpoint path mappersinvokerAdvisors
- invoker advisors to applyfilters
- filters to apply
方法详细资料
createEndpoint
protected ExposableWebEndpoint createEndpoint(Object endpointBean, EndpointId id, boolean enabledByDefault, Collection<WebOperation> operations)
从类复制的说明:EndpointDiscoverer
Factory method called to create theendpoint
.- 指定者:
createEndpoint
在类中EndpointDiscoverer<ExposableWebEndpoint,WebOperation>
- 参数:
endpointBean
- the source endpoint beanid
- the ID of the endpointenabledByDefault
- if the endpoint is enabled by defaultoperations
- the endpoint operations- 返回:
- a created endpoint (a
DiscoveredEndpoint
is recommended)
createOperation
protected WebOperation createOperation(EndpointId endpointId, DiscoveredOperationMethod operationMethod, OperationInvoker invoker)
从类复制的说明:EndpointDiscoverer
Factory method to create anendpoint operation
.- 指定者:
createOperation
在类中EndpointDiscoverer<ExposableWebEndpoint,WebOperation>
- 参数:
endpointId
- the endpoint idoperationMethod
- the operation methodinvoker
- the invoker to use- 返回:
- a created operation
createOperationKey
protected EndpointDiscoverer.OperationKey createOperationKey(WebOperation operation)
从类复制的说明:EndpointDiscoverer
Create anEndpointDiscoverer.OperationKey
for the given operation.- 指定者:
createOperationKey
在类中EndpointDiscoverer<ExposableWebEndpoint,WebOperation>
- 参数:
operation
- the source operation- 返回:
- the operation key