类 AbstractDiscoveredEndpoint<O extends Operation>
- java.lang.Object
- org.springframework.boot.actuate.endpoint.AbstractExposableEndpoint<O>
- org.springframework.boot.actuate.endpoint.annotation.AbstractDiscoveredEndpoint<O>
- 类型参数:
O
- the operation type
- 所有已实现的接口:
DiscoveredEndpoint<O>
,ExposableEndpoint<O>
public abstract class AbstractDiscoveredEndpoint<O extends Operation> extends AbstractExposableEndpoint<O> implements DiscoveredEndpoint<O>
Abstract base class forendpoints
discovered by aEndpointDiscoverer
.- 从以下版本开始:
- 2.0.0
构造器概要
构造器 构造器 说明 AbstractDiscoveredEndpoint(EndpointDiscoverer<?,?> discoverer, Object endpointBean, EndpointId id, boolean enabledByDefault, Collection<? extends O> operations)
Create a newAbstractDiscoveredEndpoint
instance.
方法概要
所有方法 实例方法 具体方法 修饰符和类型 方法 说明 protected void
appendFields(org.springframework.core.style.ToStringCreator creator)
Object
getEndpointBean()
Return the source bean that was used to construct theDiscoveredEndpoint
.String
toString()
boolean
wasDiscoveredBy(Class<? extends EndpointDiscoverer<?,?>> discoverer)
Returntrue
if the endpoint was discovered by the specified discoverer.从类继承的方法 org.springframework.boot.actuate.endpoint.AbstractExposableEndpoint
getEndpointId, getOperations, isEnableByDefault
从类继承的方法 java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
从接口继承的方法 org.springframework.boot.actuate.endpoint.ExposableEndpoint
getEndpointId, getOperations, isEnableByDefault
构造器详细资料
AbstractDiscoveredEndpoint
public AbstractDiscoveredEndpoint(EndpointDiscoverer<?,?> discoverer, Object endpointBean, EndpointId id, boolean enabledByDefault, Collection<? extends O> operations)
Create a newAbstractDiscoveredEndpoint
instance.- 参数:
discoverer
- the discoverer that discovered the endpointendpointBean
- the primary source beanid
- the ID of the endpointenabledByDefault
- if the endpoint is enabled by defaultoperations
- the endpoint operations
方法详细资料
getEndpointBean
public Object getEndpointBean()
从接口复制的说明:DiscoveredEndpoint
Return the source bean that was used to construct theDiscoveredEndpoint
.- 指定者:
getEndpointBean
在接口中DiscoveredEndpoint<O extends Operation>
- 返回:
- the source endpoint bean
wasDiscoveredBy
public boolean wasDiscoveredBy(Class<? extends EndpointDiscoverer<?,?>> discoverer)
从接口复制的说明:DiscoveredEndpoint
Returntrue
if the endpoint was discovered by the specified discoverer.- 指定者:
wasDiscoveredBy
在接口中DiscoveredEndpoint<O extends Operation>
- 参数:
discoverer
- the discoverer type- 返回:
true
if discovered using the specified discoverer
appendFields
protected void appendFields(org.springframework.core.style.ToStringCreator creator)