Interface DiscoveredEndpoint<O extends Operation>
- Type Parameters:
O
- the operation type
- All Superinterfaces:
ExposableEndpoint<O>
- All Known Implementing Classes:
AbstractDiscoveredEndpoint
An
endpoint
discovered by an EndpointDiscoverer
.- Since:
- 2.0.0
- Author:
- Phillip Webb
-
Method Summary
Modifier and TypeMethodDescriptionReturn 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 Details
-
wasDiscoveredBy
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
-