类 ServletEndpointDiscoverer
- java.lang.Object
- org.springframework.boot.actuate.endpoint.annotation.EndpointDiscoverer<ExposableServletEndpoint,Operation>
- org.springframework.boot.actuate.endpoint.web.annotation.ServletEndpointDiscoverer
public class ServletEndpointDiscoverer extends EndpointDiscoverer<ExposableServletEndpoint,Operation> implements ServletEndpointsSupplier
- 从以下版本开始:
- 2.0.0
嵌套类概要
从类继承的嵌套类/接口 org.springframework.boot.actuate.endpoint.annotation.EndpointDiscoverer
EndpointDiscoverer.OperationKey
构造器概要
构造器 构造器 说明 ServletEndpointDiscoverer(org.springframework.context.ApplicationContext applicationContext, List<PathMapper> endpointPathMappers, Collection<EndpointFilter<ExposableServletEndpoint>> filters)
Create a newServletEndpointDiscoverer
instance.
方法概要
所有方法 实例方法 具体方法 修饰符和类型 方法 说明 protected ExposableServletEndpoint
createEndpoint(Object endpointBean, EndpointId id, boolean enabledByDefault, Collection<Operation> operations)
Factory method called to create theendpoint
.protected Operation
createOperation(EndpointId endpointId, DiscoveredOperationMethod operationMethod, OperationInvoker invoker)
Factory method to create anendpoint operation
.protected EndpointDiscoverer.OperationKey
createOperationKey(Operation operation)
Create anEndpointDiscoverer.OperationKey
for the given operation.protected boolean
isEndpointExposed(Object endpointBean)
Determine if an endpoint bean should be exposed.从类继承的方法 org.springframework.boot.actuate.endpoint.annotation.EndpointDiscoverer
getEndpoints, getEndpointType, isExtensionExposed
从类继承的方法 java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
从接口继承的方法 org.springframework.boot.actuate.endpoint.EndpointsSupplier
getEndpoints
构造器详细资料
ServletEndpointDiscoverer
public ServletEndpointDiscoverer(org.springframework.context.ApplicationContext applicationContext, List<PathMapper> endpointPathMappers, Collection<EndpointFilter<ExposableServletEndpoint>> filters)
Create a newServletEndpointDiscoverer
instance.- 参数:
applicationContext
- the source application contextendpointPathMappers
- the endpoint path mappersfilters
- filters to apply
方法详细资料
isEndpointExposed
protected boolean isEndpointExposed(Object endpointBean)
从类复制的说明:EndpointDiscoverer
Determine if an endpoint bean should be exposed. Subclasses can override this method to provide additional logic.- 覆盖:
isEndpointExposed
在类中EndpointDiscoverer<ExposableServletEndpoint,Operation>
- 参数:
endpointBean
- the endpoint bean- 返回:
true
if the endpoint is exposed
createEndpoint
protected ExposableServletEndpoint createEndpoint(Object endpointBean, EndpointId id, boolean enabledByDefault, Collection<Operation> operations)
从类复制的说明:EndpointDiscoverer
Factory method called to create theendpoint
.- 指定者:
createEndpoint
在类中EndpointDiscoverer<ExposableServletEndpoint,Operation>
- 参数:
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 Operation createOperation(EndpointId endpointId, DiscoveredOperationMethod operationMethod, OperationInvoker invoker)
从类复制的说明:EndpointDiscoverer
Factory method to create anendpoint operation
.- 指定者:
createOperation
在类中EndpointDiscoverer<ExposableServletEndpoint,Operation>
- 参数:
endpointId
- the endpoint idoperationMethod
- the operation methodinvoker
- the invoker to use- 返回:
- a created operation
createOperationKey
protected EndpointDiscoverer.OperationKey createOperationKey(Operation operation)
从类复制的说明:EndpointDiscoverer
Create anEndpointDiscoverer.OperationKey
for the given operation.- 指定者:
createOperationKey
在类中EndpointDiscoverer<ExposableServletEndpoint,Operation>
- 参数:
operation
- the source operation- 返回:
- the operation key