public class ControllerEndpointDiscoverer extends EndpointDiscoverer<ExposableControllerEndpoint,Operation> implements ControllerEndpointsSupplier
EndpointDiscoverer.OperationKey| Constructor and Description |
|---|
ControllerEndpointDiscoverer(org.springframework.context.ApplicationContext applicationContext,
java.util.List<PathMapper> endpointPathMappers,
java.util.Collection<EndpointFilter<ExposableControllerEndpoint>> filters)
Create a new
ControllerEndpointDiscoverer instance. |
| Modifier and Type | Method and Description |
|---|---|
protected ExposableControllerEndpoint |
createEndpoint(java.lang.Object endpointBean,
EndpointId id,
boolean enabledByDefault,
java.util.Collection<Operation> operations)
Factory method called to create the
endpoint. |
protected Operation |
createOperation(EndpointId endpointId,
DiscoveredOperationMethod operationMethod,
OperationInvoker invoker)
Factory method to create an
endpoint operation. |
protected EndpointDiscoverer.OperationKey |
createOperationKey(Operation operation)
Create an
EndpointDiscoverer.OperationKey for the given operation. |
protected boolean |
isEndpointTypeExposed(java.lang.Class<?> beanType)
Determine if an endpoint bean should be exposed.
|
getEndpoints, getEndpointType, isEndpointExposed, isExtensionExposed, isExtensionTypeExposedclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetEndpointspublic ControllerEndpointDiscoverer(org.springframework.context.ApplicationContext applicationContext,
java.util.List<PathMapper> endpointPathMappers,
java.util.Collection<EndpointFilter<ExposableControllerEndpoint>> filters)
ControllerEndpointDiscoverer instance.applicationContext - the source application contextendpointPathMappers - the endpoint path mappersfilters - filters to applyprotected boolean isEndpointTypeExposed(java.lang.Class<?> beanType)
EndpointDiscovererisEndpointTypeExposed in class EndpointDiscoverer<ExposableControllerEndpoint,Operation>beanType - the endpoint bean typetrue if the endpoint is exposedprotected ExposableControllerEndpoint createEndpoint(java.lang.Object endpointBean, EndpointId id, boolean enabledByDefault, java.util.Collection<Operation> operations)
EndpointDiscovererendpoint.createEndpoint in class EndpointDiscoverer<ExposableControllerEndpoint,Operation>endpointBean - the source endpoint beanid - the ID of the endpointenabledByDefault - if the endpoint is enabled by defaultoperations - the endpoint operationsDiscoveredEndpoint is recommended)protected Operation createOperation(EndpointId endpointId, DiscoveredOperationMethod operationMethod, OperationInvoker invoker)
EndpointDiscovererendpoint operation.createOperation in class EndpointDiscoverer<ExposableControllerEndpoint,Operation>endpointId - the endpoint idoperationMethod - the operation methodinvoker - the invoker to useprotected EndpointDiscoverer.OperationKey createOperationKey(Operation operation)
EndpointDiscovererEndpointDiscoverer.OperationKey for the given operation.createOperationKey in class EndpointDiscoverer<ExposableControllerEndpoint,Operation>operation - the source operation