Class DiscovererEndpointFilter
- java.lang.Object
- org.springframework.boot.actuate.endpoint.annotation.DiscovererEndpointFilter
- All Implemented Interfaces:
EndpointFilter<DiscoveredEndpoint<?>>
public abstract class DiscovererEndpointFilter extends Object implements EndpointFilter<DiscoveredEndpoint<?>>
EndpointFilter
the matches based on theEndpointDiscoverer
the created the endpoint.
Constructor Summary
Constructors Modifier Constructor Description protected
DiscovererEndpointFilter(Class<? extends EndpointDiscoverer<?,?>> discoverer)
Create a newDiscovererEndpointFilter
instance.
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
match(DiscoveredEndpoint<?> endpoint)
Returntrue
if the filter matches.
Constructor Detail
DiscovererEndpointFilter
protected DiscovererEndpointFilter(Class<? extends EndpointDiscoverer<?,?>> discoverer)
Create a newDiscovererEndpointFilter
instance.- Parameters:
discoverer
- the required discoverer
Method Detail
match
public boolean match(DiscoveredEndpoint<?> endpoint)
Description copied from interface:EndpointFilter
Returntrue
if the filter matches.- Specified by:
match
in interfaceEndpointFilter<DiscoveredEndpoint<?>>
- Parameters:
endpoint
- the endpoint to check- Returns:
true
if the filter matches