public class WebAnnotationEndpointDiscoverer extends AnnotationEndpointDiscoverer<OperationRequestPredicate,WebOperation>
AnnotationEndpointDiscoverer.DiscoveredEndpoint, AnnotationEndpointDiscoverer.DiscoveredExtension, AnnotationEndpointDiscoverer.OperationKey
Constructor and Description |
---|
WebAnnotationEndpointDiscoverer(org.springframework.context.ApplicationContext applicationContext,
ParameterMapper parameterMapper,
EndpointMediaTypes endpointMediaTypes,
EndpointPathResolver endpointPathResolver,
Collection<? extends OperationMethodInvokerAdvisor> invokerAdvisors,
Collection<? extends EndpointFilter<WebOperation>> filters)
Creates a new
WebAnnotationEndpointDiscoverer that will discover
endpoints and web extensions using
the given ApplicationContext . |
Modifier and Type | Method and Description |
---|---|
protected void |
verify(Collection<AnnotationEndpointDiscoverer.DiscoveredEndpoint> exposedEndpoints)
Allows subclasses to verify that the descriptors are correctly configured.
|
discoverEndpoints, getOperationType, isExtensionExposed
public WebAnnotationEndpointDiscoverer(org.springframework.context.ApplicationContext applicationContext, ParameterMapper parameterMapper, EndpointMediaTypes endpointMediaTypes, EndpointPathResolver endpointPathResolver, Collection<? extends OperationMethodInvokerAdvisor> invokerAdvisors, Collection<? extends EndpointFilter<WebOperation>> filters)
WebAnnotationEndpointDiscoverer
that will discover
endpoints
and web extensions
using
the given ApplicationContext
.applicationContext
- the application contextparameterMapper
- the ParameterMapper
used to convert arguments when
an operation is invokedendpointMediaTypes
- the media types produced and consumed by web endpoint
operationsendpointPathResolver
- the EndpointPathResolver
used to resolve
endpoint pathsinvokerAdvisors
- advisors used to add additional invoker advisefilters
- filters that must match for an endpoint to be exposedprotected void verify(Collection<AnnotationEndpointDiscoverer.DiscoveredEndpoint> exposedEndpoints)
AnnotationEndpointDiscoverer
verify
in class AnnotationEndpointDiscoverer<OperationRequestPredicate,WebOperation>
exposedEndpoints
- the discovered endpoints to verify before exposingCopyright © 2017 Pivotal Software, Inc.. All rights reserved.