类 ControllerEndpointDiscoverer
java.lang.Object
org.springframework.boot.actuate.endpoint.annotation.EndpointDiscoverer<ExposableControllerEndpoint,Operation>
org.springframework.boot.actuate.endpoint.web.annotation.ControllerEndpointDiscoverer
@ImportRuntimeHints(org.springframework.boot.actuate.endpoint.web.annotation.ControllerEndpointDiscoverer.ControllerEndpointDiscovererRuntimeHints.class)
@Deprecated(since="3.3.0",
forRemoval=true)
public class ControllerEndpointDiscoverer
extends EndpointDiscoverer<ExposableControllerEndpoint,Operation>
implements ControllerEndpointsSupplier
已过时, 待删除: 此 API 元素将从以后的版本中删除。
- 从以下版本开始:
- 2.0.0
- 作者:
- Phillip Webb
-
嵌套类概要
从类继承的嵌套类/接口 org.springframework.boot.actuate.endpoint.annotation.EndpointDiscoverer
EndpointDiscoverer.OperationKey -
构造器概要
构造器构造器说明ControllerEndpointDiscoverer(ApplicationContext applicationContext, List<PathMapper> endpointPathMappers, Collection<EndpointFilter<ExposableControllerEndpoint>> filters) 已过时, 待删除: 此 API 元素将从以后的版本中删除。Create a newControllerEndpointDiscovererinstance. -
方法概要
修饰符和类型方法说明protected ExposableControllerEndpointcreateEndpoint(Object endpointBean, EndpointId id, Access defaultAccess, Collection<Operation> operations) 已过时, 待删除: 此 API 元素将从以后的版本中删除。Factory method called to create theendpoint.protected OperationcreateOperation(EndpointId endpointId, DiscoveredOperationMethod operationMethod, OperationInvoker invoker) 已过时, 待删除: 此 API 元素将从以后的版本中删除。Factory method to create anendpoint operation.protected EndpointDiscoverer.OperationKeycreateOperationKey(Operation operation) 已过时, 待删除: 此 API 元素将从以后的版本中删除。Create anEndpointDiscoverer.OperationKeyfor the given operation.protected booleanisEndpointTypeExposed(Class<?> beanType) 已过时, 待删除: 此 API 元素将从以后的版本中删除。Determine if an endpoint bean should be exposed.protected booleanisInvocable(ExposableControllerEndpoint 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
-
构造器详细资料
-
ControllerEndpointDiscoverer
public ControllerEndpointDiscoverer(ApplicationContext applicationContext, List<PathMapper> endpointPathMappers, Collection<EndpointFilter<ExposableControllerEndpoint>> filters) 已过时, 待删除: 此 API 元素将从以后的版本中删除。Create a newControllerEndpointDiscovererinstance.- 参数:
applicationContext- the source application contextendpointPathMappers- the endpoint path mappersfilters- filters to apply
-
-
方法详细资料
-
isEndpointTypeExposed
已过时, 待删除: 此 API 元素将从以后的版本中删除。从类复制的说明:EndpointDiscovererDetermine if an endpoint bean should be exposed. Subclasses can override this method to provide additional logic.- 覆盖:
isEndpointTypeExposed在类中EndpointDiscoverer<ExposableControllerEndpoint,Operation> - 参数:
beanType- the endpoint bean type- 返回:
trueif the endpoint is exposed
-
createEndpoint
protected ExposableControllerEndpoint createEndpoint(Object endpointBean, EndpointId id, Access defaultAccess, Collection<Operation> operations) 已过时, 待删除: 此 API 元素将从以后的版本中删除。从类复制的说明:EndpointDiscovererFactory method called to create theendpoint.- 指定者:
createEndpoint在类中EndpointDiscoverer<ExposableControllerEndpoint,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
DiscoveredEndpointis recommended)
-
createOperation
protected Operation createOperation(EndpointId endpointId, DiscoveredOperationMethod operationMethod, OperationInvoker invoker) 已过时, 待删除: 此 API 元素将从以后的版本中删除。从类复制的说明:EndpointDiscovererFactory method to create anendpoint operation.- 指定者:
createOperation在类中EndpointDiscoverer<ExposableControllerEndpoint,Operation> - 参数:
endpointId- the endpoint idoperationMethod- the operation methodinvoker- the invoker to use- 返回:
- a created operation
-
createOperationKey
已过时, 待删除: 此 API 元素将从以后的版本中删除。从类复制的说明:EndpointDiscovererCreate anEndpointDiscoverer.OperationKeyfor the given operation.- 指定者:
createOperationKey在类中EndpointDiscoverer<ExposableControllerEndpoint,Operation> - 参数:
operation- the source operation- 返回:
- the operation key
-
isInvocable
已过时, 待删除: 此 API 元素将从以后的版本中删除。从类复制的说明:EndpointDiscovererReturns whether the endpoint is invocable and should be included in the discovered endpoints. The default implementation returnstrueif the endpoint has any operations, otherwisefalse.- 覆盖:
isInvocable在类中EndpointDiscoverer<ExposableControllerEndpoint,Operation> - 参数:
endpoint- the endpoint to assess- 返回:
trueif the endpoint is invocable, otherwisefalse.
-
@Endpointand@WebEndpointsupport