类 ServletEndpointDiscoverer
java.lang.Object
org.springframework.boot.actuate.endpoint.annotation.EndpointDiscoverer<ExposableServletEndpoint,Operation>
org.springframework.boot.actuate.endpoint.web.annotation.ServletEndpointDiscoverer
@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
已过时, 待删除: 此 API 元素将从以后的版本中删除。
- 从以下版本开始:
- 2.0.0
- 作者:
- Phillip Webb
-
嵌套类概要
从类继承的嵌套类/接口 org.springframework.boot.actuate.endpoint.annotation.EndpointDiscoverer
EndpointDiscoverer.OperationKey
-
构造器概要
构造器构造器说明ServletEndpointDiscoverer
(ApplicationContext applicationContext, List<PathMapper> endpointPathMappers, Collection<EndpointFilter<ExposableServletEndpoint>> filters) 已过时, 待删除: 此 API 元素将从以后的版本中删除。Create a newServletEndpointDiscoverer
instance. -
方法概要
修饰符和类型方法说明protected ExposableServletEndpoint
createEndpoint
(Object endpointBean, EndpointId id, Access defaultAccess, Collection<Operation> operations) 已过时, 待删除: 此 API 元素将从以后的版本中删除。Factory method called to create theendpoint
.protected Operation
createOperation
(EndpointId endpointId, DiscoveredOperationMethod operationMethod, OperationInvoker invoker) 已过时, 待删除: 此 API 元素将从以后的版本中删除。Factory method to create anendpoint operation
.protected EndpointDiscoverer.OperationKey
createOperationKey
(Operation operation) 已过时, 待删除: 此 API 元素将从以后的版本中删除。Create anEndpointDiscoverer.OperationKey
for the given operation.protected boolean
isEndpointTypeExposed
(Class<?> beanType) 已过时, 待删除: 此 API 元素将从以后的版本中删除。Determine if an endpoint bean should be exposed.protected boolean
isInvocable
(ExposableServletEndpoint endpoint) 已过时, 待删除: 此 API 元素将从以后的版本中删除。Returns whether the endpoint is invocable and should be included in the discovered endpoints.从类继承的方法 org.springframework.boot.actuate.endpoint.annotation.EndpointDiscoverer
createEndpoint, getEndpoints, getEndpointType, isExtensionTypeExposed
从类继承的方法 java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
从接口继承的方法 org.springframework.boot.actuate.endpoint.EndpointsSupplier
getEndpoints
-
构造器详细资料
-
ServletEndpointDiscoverer
public ServletEndpointDiscoverer(ApplicationContext applicationContext, List<PathMapper> endpointPathMappers, Collection<EndpointFilter<ExposableServletEndpoint>> filters) 已过时, 待删除: 此 API 元素将从以后的版本中删除。Create a newServletEndpointDiscoverer
instance.- 参数:
applicationContext
- the source application contextendpointPathMappers
- the endpoint path mappersfilters
- filters to apply
-
-
方法详细资料
-
isEndpointTypeExposed
已过时, 待删除: 此 API 元素将从以后的版本中删除。从类复制的说明:EndpointDiscoverer
Determine if an endpoint bean should be exposed. Subclasses can override this method to provide additional logic.- 覆盖:
isEndpointTypeExposed
在类中EndpointDiscoverer<ExposableServletEndpoint,
Operation> - 参数:
beanType
- the endpoint bean type- 返回:
true
if the endpoint is exposed
-
createEndpoint
protected ExposableServletEndpoint createEndpoint(Object endpointBean, EndpointId id, Access defaultAccess, Collection<Operation> operations) 已过时, 待删除: 此 API 元素将从以后的版本中删除。从类复制的说明:EndpointDiscoverer
Factory method called to create theendpoint
.- 指定者:
createEndpoint
在类中EndpointDiscoverer<ExposableServletEndpoint,
Operation> - 参数:
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
DiscoveredEndpoint
is recommended)
-
createOperation
protected Operation createOperation(EndpointId endpointId, DiscoveredOperationMethod operationMethod, OperationInvoker invoker) 已过时, 待删除: 此 API 元素将从以后的版本中删除。从类复制的说明: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
已过时, 待删除: 此 API 元素将从以后的版本中删除。从类复制的说明:EndpointDiscoverer
Create anEndpointDiscoverer.OperationKey
for the given operation.- 指定者:
createOperationKey
在类中EndpointDiscoverer<ExposableServletEndpoint,
Operation> - 参数:
operation
- the source operation- 返回:
- the operation key
-
isInvocable
已过时, 待删除: 此 API 元素将从以后的版本中删除。从类复制的说明:EndpointDiscoverer
Returns whether the endpoint is invocable and should be included in the discovered endpoints. The default implementation returnstrue
if the endpoint has any operations, otherwisefalse
.- 覆盖:
isInvocable
在类中EndpointDiscoverer<ExposableServletEndpoint,
Operation> - 参数:
endpoint
- the endpoint to assess- 返回:
true
if the endpoint is invocable, otherwisefalse
.
-
@Endpoint
and@WebEndpoint