Interface DiscoveredEndpoint<O extends Operation>
- Type Parameters:
O
- the operation type
- All Superinterfaces:
ExposableEndpoint<O>
- All Known Implementing Classes:
AbstractDiscoveredEndpoint
public interface DiscoveredEndpoint<O extends Operation> extends ExposableEndpoint<O>
Anendpoint
discovered by anEndpointDiscoverer
.- Since:
- 2.0.0
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description Object
getEndpointBean()
Return the source bean that was used to construct theDiscoveredEndpoint
.boolean
wasDiscoveredBy(Class<? extends EndpointDiscoverer<?,?>> discoverer)
Returntrue
if the endpoint was discovered by the specified discoverer.Methods inherited from interface org.springframework.boot.actuate.endpoint.ExposableEndpoint
getEndpointId, getOperations, isEnableByDefault
Method Detail
wasDiscoveredBy
boolean wasDiscoveredBy(Class<? extends EndpointDiscoverer<?,?>> discoverer)
Returntrue
if the endpoint was discovered by the specified discoverer.- Parameters:
discoverer
- the discoverer type- Returns:
true
if discovered using the specified discoverer
getEndpointBean
Object getEndpointBean()
Return the source bean that was used to construct theDiscoveredEndpoint
.- Returns:
- the source endpoint bean