类 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 for
endpoints
discovered by a
EndpointDiscoverer
.- 从以下版本开始:
- 2.0.0
- 作者:
- Phillip Webb
-
构造器概要
构造器构造器说明AbstractDiscoveredEndpoint
(EndpointDiscoverer<?, ?> discoverer, Object endpointBean, EndpointId id, boolean enabledByDefault, Collection<? extends O> operations) 已过时, 待删除: 此 API 元素将从以后的版本中删除。AbstractDiscoveredEndpoint
(EndpointDiscoverer<?, ?> discoverer, Object endpointBean, EndpointId id, Access defaultAccess, Collection<? extends O> operations) Create a newAbstractDiscoveredEndpoint
instance. -
方法概要
修饰符和类型方法说明protected void
appendFields
(ToStringCreator creator) Return the source bean that was used to construct theDiscoveredEndpoint
.toString()
boolean
wasDiscoveredBy
(Class<? extends EndpointDiscoverer<?, ?>> discoverer) Returntrue
if the endpoint was discovered by the specified discoverer.从类继承的方法 org.springframework.boot.actuate.endpoint.AbstractExposableEndpoint
getDefaultAccess, getEndpointId, getOperations, isEnableByDefault
从类继承的方法 java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
从接口继承的方法 org.springframework.boot.actuate.endpoint.ExposableEndpoint
getDefaultAccess, getEndpointId, getOperations, isEnableByDefault
-
构造器详细资料
-
AbstractDiscoveredEndpoint
@Deprecated(since="3.4.0", forRemoval=true) public AbstractDiscoveredEndpoint(EndpointDiscoverer<?, ?> discoverer, Object endpointBean, EndpointId id, boolean enabledByDefault, Collection<? extends O> operations) 已过时, 待删除: 此 API 元素将从以后的版本中删除。since 3.4.0 for removal in 4.0.0 in favor ofAbstractDiscoveredEndpoint(EndpointDiscoverer, Object, EndpointId, Access, Collection)
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
-
AbstractDiscoveredEndpoint
public AbstractDiscoveredEndpoint(EndpointDiscoverer<?, ?> discoverer, Object endpointBean, EndpointId id, Access defaultAccess, Collection<? extends O> operations) Create a newAbstractDiscoveredEndpoint
instance.- 参数:
discoverer
- the discoverer that discovered the endpointendpointBean
- the primary source beanid
- the ID of the endpointdefaultAccess
- access to the endpoint that is permitted by defaultoperations
- the endpoint operations- 从以下版本开始:
- 3.4.0
-
-
方法详细资料
-
getEndpointBean
从接口复制的说明:DiscoveredEndpoint
Return the source bean that was used to construct theDiscoveredEndpoint
.- 指定者:
getEndpointBean
在接口中DiscoveredEndpoint<O extends Operation>
- 返回:
- the source endpoint bean
-
wasDiscoveredBy
从接口复制的说明: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
-
toString
-
appendFields
-
AbstractDiscoveredEndpoint(EndpointDiscoverer, Object, EndpointId, Access, Collection)