Class AbstractDiscoveredEndpoint<O extends Operation>
java.lang.Object
org.springframework.boot.actuate.endpoint.AbstractExposableEndpoint<O>
org.springframework.boot.actuate.endpoint.annotation.AbstractDiscoveredEndpoint<O>
- Type Parameters:
O- the operation type
- All Implemented Interfaces:
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.- Since:
- 2.0.0
- Author:
- Phillip Webb
-
Constructor Summary
ConstructorsConstructorDescriptionAbstractDiscoveredEndpoint(EndpointDiscoverer<?, ?> discoverer, Object endpointBean, EndpointId id, boolean enabledByDefault, Collection<? extends O> operations) Create a newAbstractDiscoveredEndpointinstance. -
Method Summary
Modifier and TypeMethodDescriptionprotected 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.Methods inherited from class org.springframework.boot.actuate.endpoint.AbstractExposableEndpoint
getEndpointId, getOperations, isEnableByDefaultMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface org.springframework.boot.actuate.endpoint.ExposableEndpoint
getEndpointId, getOperations, isEnableByDefault
-
Constructor Details
-
AbstractDiscoveredEndpoint
public AbstractDiscoveredEndpoint(EndpointDiscoverer<?, ?> discoverer, Object endpointBean, EndpointId id, boolean enabledByDefault, Collection<? extends O> operations) Create a newAbstractDiscoveredEndpointinstance.- Parameters:
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
-
-
Method Details
-
getEndpointBean
Description copied from interface:DiscoveredEndpointReturn the source bean that was used to construct theDiscoveredEndpoint.- Specified by:
getEndpointBeanin interfaceDiscoveredEndpoint<O extends Operation>- Returns:
- the source endpoint bean
-
wasDiscoveredBy
Description copied from interface:DiscoveredEndpointReturntrueif the endpoint was discovered by the specified discoverer.- Specified by:
wasDiscoveredByin interfaceDiscoveredEndpoint<O extends Operation>- Parameters:
discoverer- the discoverer type- Returns:
trueif discovered using the specified discoverer
-
toString
-
appendFields
-