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
ConstructorDescriptionAbstractDiscoveredEndpoint
(EndpointDiscoverer<?, ?> discoverer, Object endpointBean, EndpointId id, boolean enabledByDefault, Collection<? extends O> operations) Deprecated, for removal: This API element is subject to removal in a future version.AbstractDiscoveredEndpoint
(EndpointDiscoverer<?, ?> discoverer, Object endpointBean, EndpointId id, Access defaultAccess, Collection<? extends O> operations) Create a newAbstractDiscoveredEndpoint
instance. -
Method Summary
Modifier and TypeMethodDescriptionprotected 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.Methods inherited from class org.springframework.boot.actuate.endpoint.AbstractExposableEndpoint
getDefaultAccess, getEndpointId, getOperations, isEnableByDefault
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
Methods inherited from interface org.springframework.boot.actuate.endpoint.ExposableEndpoint
getDefaultAccess, getEndpointId, getOperations, isEnableByDefault
-
Constructor Details
-
AbstractDiscoveredEndpoint
@Deprecated(since="3.4.0", forRemoval=true) public AbstractDiscoveredEndpoint(EndpointDiscoverer<?, ?> discoverer, Object endpointBean, EndpointId id, boolean enabledByDefault, Collection<? extends O> operations) Deprecated, for removal: This API element is subject to removal in a future version.since 3.4.0 for removal in 3.6.0 in favor ofAbstractDiscoveredEndpoint(EndpointDiscoverer, Object, EndpointId, Access, Collection)
Create a newAbstractDiscoveredEndpoint
instance.- 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
-
AbstractDiscoveredEndpoint
public AbstractDiscoveredEndpoint(EndpointDiscoverer<?, ?> discoverer, Object endpointBean, EndpointId id, Access defaultAccess, Collection<? extends O> operations) Create a newAbstractDiscoveredEndpoint
instance.- 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:DiscoveredEndpoint
Return the source bean that was used to construct theDiscoveredEndpoint
.- Specified by:
getEndpointBean
in interfaceDiscoveredEndpoint<O extends Operation>
- Returns:
- the source endpoint bean
-
wasDiscoveredBy
Description copied from interface:DiscoveredEndpoint
Returntrue
if the endpoint was discovered by the specified discoverer.- Specified by:
wasDiscoveredBy
in interfaceDiscoveredEndpoint<O extends Operation>
- Parameters:
discoverer
- the discoverer type- Returns:
true
if discovered using the specified discoverer
-
toString
-
appendFields
-
AbstractDiscoveredEndpoint(EndpointDiscoverer, Object, EndpointId, Access, Collection)