O
- the operation typepublic abstract class AbstractDiscoveredEndpoint<O extends Operation> extends AbstractExposableEndpoint<O> implements DiscoveredEndpoint<O>
endpoints
discovered by a
EndpointDiscoverer
.Constructor and Description |
---|
AbstractDiscoveredEndpoint(EndpointDiscoverer<?,?> discoverer,
Object endpointBean,
EndpointId id,
boolean enabledByDefault,
Collection<? extends O> operations)
Create a new
AbstractDiscoveredEndpoint instance. |
Modifier and Type | Method and Description |
---|---|
protected void |
appendFields(ToStringCreator creator) |
Object |
getEndpointBean()
Return the source bean that was used to construct the
DiscoveredEndpoint . |
String |
toString() |
boolean |
wasDiscoveredBy(Class<? extends EndpointDiscoverer<?,?>> discoverer)
Return
true if the endpoint was discovered by the specified discoverer. |
getEndpointId, getOperations, isEnableByDefault
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
getEndpointId, getOperations, isEnableByDefault
public AbstractDiscoveredEndpoint(EndpointDiscoverer<?,?> discoverer, Object endpointBean, EndpointId id, boolean enabledByDefault, Collection<? extends O> operations)
AbstractDiscoveredEndpoint
instance.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 operationspublic Object getEndpointBean()
DiscoveredEndpoint
DiscoveredEndpoint
.getEndpointBean
in interface DiscoveredEndpoint<O extends Operation>
public boolean wasDiscoveredBy(Class<? extends EndpointDiscoverer<?,?>> discoverer)
DiscoveredEndpoint
true
if the endpoint was discovered by the specified discoverer.wasDiscoveredBy
in interface DiscoveredEndpoint<O extends Operation>
discoverer
- the discoverer typetrue
if discovered using the specified discovererprotected void appendFields(ToStringCreator creator)