类 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 newAbstractDiscoveredEndpointinstance. -
方法概要
修饰符和类型方法说明protected voidappendFields(ToStringCreator creator) Return the source bean that was used to construct theDiscoveredEndpoint.toString()booleanwasDiscoveredBy(Class<? extends EndpointDiscoverer<?, ?>> discoverer) Returntrueif 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 newAbstractDiscoveredEndpointinstance.- 参数:
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 newAbstractDiscoveredEndpointinstance.- 参数:
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
从接口复制的说明:DiscoveredEndpointReturn the source bean that was used to construct theDiscoveredEndpoint.- 指定者:
getEndpointBean在接口中DiscoveredEndpoint<O extends Operation>- 返回:
- the source endpoint bean
-
wasDiscoveredBy
从接口复制的说明:DiscoveredEndpointReturntrueif the endpoint was discovered by the specified discoverer.- 指定者:
wasDiscoveredBy在接口中DiscoveredEndpoint<O extends Operation>- 参数:
discoverer- the discoverer type- 返回:
trueif discovered using the specified discoverer
-
toString
-
appendFields
-
AbstractDiscoveredEndpoint(EndpointDiscoverer, Object, EndpointId, Access, Collection)