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, Access defaultAccess, 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 AbstractExposableEndpoint
getDefaultAccess, getEndpointId, getOperationsMethods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface ExposableEndpoint
getDefaultAccess, getEndpointId, getOperations
-
Constructor Details
-
AbstractDiscoveredEndpoint
public AbstractDiscoveredEndpoint(EndpointDiscoverer<?, ?> discoverer, Object endpointBean, EndpointId id, Access defaultAccess, Collection<? extends O> operations) Create a newAbstractDiscoveredEndpointinstance.- Parameters:
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- Since:
- 3.4.0
-
-
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
-