Class AbstractAnnotationMethodEndpointMapping<T>
java.lang.Object
org.springframework.context.support.ApplicationObjectSupport
org.springframework.ws.server.endpoint.mapping.AbstractEndpointMapping
org.springframework.ws.server.endpoint.mapping.AbstractMethodEndpointMapping<T>
org.springframework.ws.server.endpoint.mapping.AbstractAnnotationMethodEndpointMapping<T>
- All Implemented Interfaces:
org.springframework.beans.factory.Aware
,org.springframework.context.ApplicationContextAware
,org.springframework.core.Ordered
,EndpointMapping
- Direct Known Subclasses:
PayloadRootAnnotationMethodEndpointMapping
,SoapActionAnnotationMethodEndpointMapping
,XmlRootElementEndpointMapping
public abstract class AbstractAnnotationMethodEndpointMapping<T>
extends AbstractMethodEndpointMapping<T>
Abstract base for
EndpointMapping
implementations that map classes tagged with
an annotation. By default the annotation is Endpoint
, but this can be overriden in subclasses.
The methods of each bean carrying @Endpoint will be registered using AbstractMethodEndpointMapping.registerMethods(String)
.
- Since:
- 1.0.0
- Author:
- Arjen Poutsma
-
Field Summary
Fields inherited from class org.springframework.context.support.ApplicationObjectSupport
logger
Fields inherited from interface org.springframework.core.Ordered
HIGHEST_PRECEDENCE, LOWEST_PRECEDENCE
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprotected Class<? extends Annotation>
Returns the 'endpoint' annotation type.protected void
Initializes the interceptors.void
setDetectEndpointsInAncestorContexts
(boolean detectEndpointsInAncestorContexts) Set whether to detect endpoint beans in ancestor ApplicationContexts.Methods inherited from class org.springframework.ws.server.endpoint.mapping.AbstractMethodEndpointMapping
getEndpointClass, getEndpointInternal, getLookupKeyForMessage, getLookupKeyForMethod, getLookupKeysForMethod, lookupEndpoint, registerEndpoint, registerMethods, registerMethods
Methods inherited from class org.springframework.ws.server.endpoint.mapping.AbstractEndpointMapping
createEndpointInvocationChain, getDefaultEndpoint, getEndpoint, getInterceptors, getOrder, initInterceptors, resolveStringEndpoint, setDefaultEndpoint, setInterceptors, setOrder
Methods inherited from class org.springframework.context.support.ApplicationObjectSupport
getApplicationContext, getMessageSourceAccessor, initApplicationContext, isContextRequired, obtainApplicationContext, requiredContextClass, setApplicationContext
-
Constructor Details
-
AbstractAnnotationMethodEndpointMapping
public AbstractAnnotationMethodEndpointMapping()
-
-
Method Details
-
setDetectEndpointsInAncestorContexts
public void setDetectEndpointsInAncestorContexts(boolean detectEndpointsInAncestorContexts) Set whether to detect endpoint beans in ancestor ApplicationContexts.Default is "false": Only endpoint beans in the current ApplicationContext will be detected, i.e. only in the context that this EndpointMapping itself is defined in (typically the current MessageDispatcherServlet's context).
Switch this flag on to detect endpoint beans in ancestor contexts (typically the Spring root WebApplicationContext) as well.
-
getEndpointAnnotationType
Returns the 'endpoint' annotation type. Default isEndpoint
. -
initApplicationContext
protected void initApplicationContext() throws org.springframework.beans.BeansExceptionDescription copied from class:AbstractEndpointMapping
Initializes the interceptors.- Overrides:
initApplicationContext
in classAbstractEndpointMapping
- Throws:
org.springframework.beans.BeansException
- See Also:
-