public class WebAnnotationEndpointDiscoverer extends AnnotationEndpointDiscoverer<WebEndpointOperation,OperationRequestPredicate>
AnnotationEndpointDiscoverer.EndpointInfoDescriptor<T extends Operation,K>, AnnotationEndpointDiscoverer.EndpointOperationFactory<T extends Operation>, AnnotationEndpointDiscoverer.OperationKey<K>
Constructor and Description |
---|
WebAnnotationEndpointDiscoverer(org.springframework.context.ApplicationContext applicationContext,
OperationParameterMapper operationParameterMapper,
CachingConfigurationFactory cachingConfigurationFactory,
Collection<String> consumedMediaTypes,
Collection<String> producedMediaTypes)
Creates a new
WebAnnotationEndpointDiscoverer that will discover
endpoints and web extensions using
the given ApplicationContext . |
Modifier and Type | Method and Description |
---|---|
Collection<EndpointInfo<WebEndpointOperation>> |
discoverEndpoints()
Perform endpoint discovery.
|
discoverEndpoints
public WebAnnotationEndpointDiscoverer(org.springframework.context.ApplicationContext applicationContext, OperationParameterMapper operationParameterMapper, CachingConfigurationFactory cachingConfigurationFactory, Collection<String> consumedMediaTypes, Collection<String> producedMediaTypes)
WebAnnotationEndpointDiscoverer
that will discover
endpoints
and web extensions
using
the given ApplicationContext
.applicationContext
- the application contextoperationParameterMapper
- the OperationParameterMapper
used to
convert arguments when an operation is invokedcachingConfigurationFactory
- the CachingConfiguration
factory to useconsumedMediaTypes
- the media types consumed by web endpoint operationsproducedMediaTypes
- the media types produced by web endpoint operationspublic Collection<EndpointInfo<WebEndpointOperation>> discoverEndpoints()
EndpointDiscoverer
Copyright © 2017 Pivotal Software, Inc.. All rights reserved.