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,
java.lang.Object endpointBean,
EndpointId id,
boolean enabledByDefault,
java.util.Collection<? extends O> operations)
Create a new
AbstractDiscoveredEndpoint instance. |
| Modifier and Type | Method and Description |
|---|---|
protected void |
appendFields(org.springframework.core.style.ToStringCreator creator) |
java.lang.Object |
getEndpointBean()
Return the source bean that was used to construct the
DiscoveredEndpoint. |
java.lang.String |
toString() |
boolean |
wasDiscoveredBy(java.lang.Class<? extends EndpointDiscoverer<?,?>> discoverer)
Return
true if the endpoint was discovered by the specified discoverer. |
getEndpointId, getOperations, isEnableByDefaultclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitgetEndpointId, getOperations, isEnableByDefaultpublic AbstractDiscoveredEndpoint(EndpointDiscoverer<?,?> discoverer, java.lang.Object endpointBean, EndpointId id, boolean enabledByDefault, java.util.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 java.lang.Object getEndpointBean()
DiscoveredEndpointDiscoveredEndpoint.getEndpointBean in interface DiscoveredEndpoint<O extends Operation>public boolean wasDiscoveredBy(java.lang.Class<? extends EndpointDiscoverer<?,?>> discoverer)
DiscoveredEndpointtrue 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 discovererpublic java.lang.String toString()
toString in class java.lang.Objectprotected void appendFields(org.springframework.core.style.ToStringCreator creator)