org.axonframework.common.annotation
Class SpringBeanParameterResolverFactory

java.lang.Object
  extended by org.axonframework.common.annotation.ParameterResolverFactory
      extended by org.axonframework.common.annotation.SpringBeanParameterResolverFactory
All Implemented Interfaces:
org.springframework.beans.factory.Aware, org.springframework.beans.factory.config.BeanFactoryPostProcessor, org.springframework.context.ApplicationContextAware

public class SpringBeanParameterResolverFactory
extends ParameterResolverFactory
implements org.springframework.beans.factory.config.BeanFactoryPostProcessor, org.springframework.context.ApplicationContextAware

Author:
Allard Buijze

Constructor Summary
SpringBeanParameterResolverFactory()
           
 
Method Summary
protected  ParameterResolver createInstance(Annotation[] memberAnnotations, Class<?> parameterType, Annotation[] parameterAnnotations)
          If available, creates a ParameterResolver instance that can provide a parameter of type parameterType for a given message.
 void postProcessBeanFactory(org.springframework.beans.factory.config.ConfigurableListableBeanFactory beanFactory)
           
 void setApplicationContext(org.springframework.context.ApplicationContext applicationContext)
           
 boolean supportsPayloadResolution()
          This implementation always returns false, to indicate that payload resolution is not supported for this factory
 
Methods inherited from class org.axonframework.common.annotation.ParameterResolverFactory
createPayloadResolver, findParameterResolver, registerFactory
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SpringBeanParameterResolverFactory

public SpringBeanParameterResolverFactory()
Method Detail

createInstance

protected ParameterResolver createInstance(Annotation[] memberAnnotations,
                                           Class<?> parameterType,
                                           Annotation[] parameterAnnotations)
Description copied from class: ParameterResolverFactory
If available, creates a ParameterResolver instance that can provide a parameter of type parameterType for a given message.

If the ParameterResolverFactory cannot provide a suitable ParameterResolver, returns null.

Specified by:
createInstance in class ParameterResolverFactory
Parameters:
memberAnnotations - annotations placed on the member (e.g. method)
parameterType - the parameter type to find a resolver for
parameterAnnotations - annotations places on the parameter
Returns:
a suitable ParameterResolver, or null if none is found

supportsPayloadResolution

public boolean supportsPayloadResolution()
This implementation always returns false, to indicate that payload resolution is not supported for this factory

Specified by:
supportsPayloadResolution in class ParameterResolverFactory
Returns:
false

setApplicationContext

public void setApplicationContext(org.springframework.context.ApplicationContext applicationContext)
                           throws org.springframework.beans.BeansException
Specified by:
setApplicationContext in interface org.springframework.context.ApplicationContextAware
Throws:
org.springframework.beans.BeansException

postProcessBeanFactory

public void postProcessBeanFactory(org.springframework.beans.factory.config.ConfigurableListableBeanFactory beanFactory)
                            throws org.springframework.beans.BeansException
Specified by:
postProcessBeanFactory in interface org.springframework.beans.factory.config.BeanFactoryPostProcessor
Throws:
org.springframework.beans.BeansException


Copyright © 2010-2012. All Rights Reserved.