Spring Web Services Framework

org.springframework.ws.server.endpoint.mapping
Class AbstractAnnotationMethodEndpointMapping

java.lang.Object
  extended by org.springframework.context.support.ApplicationObjectSupport
      extended by org.springframework.ws.server.endpoint.mapping.AbstractEndpointMapping
          extended by org.springframework.ws.server.endpoint.mapping.AbstractMethodEndpointMapping
              extended by org.springframework.ws.server.endpoint.mapping.AbstractAnnotationMethodEndpointMapping
All Implemented Interfaces:
BeanPostProcessor, ApplicationContextAware, Ordered, EndpointMapping
Direct Known Subclasses:
PayloadRootAnnotationMethodEndpointMapping, SoapActionAnnotationMethodEndpointMapping

public abstract class AbstractAnnotationMethodEndpointMapping
extends AbstractMethodEndpointMapping
implements BeanPostProcessor

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(Object).

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
AbstractAnnotationMethodEndpointMapping()
           
 
Method Summary
protected  Class<? extends java.lang.annotation.Annotation> getEndpointAnnotationType()
          Returns the 'endpoint' annotation type.
 Object postProcessAfterInitialization(Object bean, String beanName)
           
 Object postProcessBeforeInitialization(Object bean, String beanName)
           
 
Methods inherited from class org.springframework.ws.server.endpoint.mapping.AbstractMethodEndpointMapping
getEndpointClass, getEndpointInternal, getLookupKeyForMessage, getLookupKeyForMethod, lookupEndpoint, registerEndpoint, registerMethods
 
Methods inherited from class org.springframework.ws.server.endpoint.mapping.AbstractEndpointMapping
createEndpointInvocationChain, getDefaultEndpoint, getEndpoint, getInterceptors, getOrder, resolveStringEndpoint, setDefaultEndpoint, setInterceptors, setOrder
 
Methods inherited from class org.springframework.context.support.ApplicationObjectSupport
getApplicationContext, getMessageSourceAccessor, initApplicationContext, isContextRequired, requiredContextClass, setApplicationContext
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AbstractAnnotationMethodEndpointMapping

public AbstractAnnotationMethodEndpointMapping()
Method Detail

postProcessBeforeInitialization

public final Object postProcessBeforeInitialization(Object bean,
                                                    String beanName)
                                             throws BeansException
Specified by:
postProcessBeforeInitialization in interface BeanPostProcessor
Throws:
BeansException

getEndpointAnnotationType

protected Class<? extends java.lang.annotation.Annotation> getEndpointAnnotationType()
Returns the 'endpoint' annotation type. Default is Endpoint.


postProcessAfterInitialization

public final Object postProcessAfterInitialization(Object bean,
                                                   String beanName)
                                            throws BeansException
Specified by:
postProcessAfterInitialization in interface BeanPostProcessor
Throws:
BeansException

Spring Web Services Framework

Copyright � 2005-2008 The Spring Web Services Framework. All Rights Reserved.