org.apache.tuscany.sca.implementation.spring.processor
Class ConstructorAnnotationProcessor

java.lang.Object
  extended by InstantiationAwareBeanPostProcessorAdapter
      extended by org.apache.tuscany.sca.implementation.spring.processor.ConstructorAnnotationProcessor

public class ConstructorAnnotationProcessor
extends InstantiationAwareBeanPostProcessorAdapter


Constructor Summary
ConstructorAnnotationProcessor()
           
 
Method Summary
 java.lang.reflect.Constructor[] determineCandidateConstructors(java.lang.Class beanClass, java.lang.String beanName)
           
protected  java.lang.Class<? extends java.lang.annotation.Annotation> getAutowiredAnnotationType()
          Return the 'autowired' annotation type.
protected  java.lang.Class<? extends java.lang.annotation.Annotation> getConstructorAnnotationType()
          Return the 'constructor' annotation type.
 java.lang.Object postProcessAfterInitialization(java.lang.Object bean, java.lang.String beanName)
          This method is used to execute after a bean's initialization callback.
 java.lang.Object postProcessBeforeInitialization(java.lang.Object bean, java.lang.String beanName)
          This method is used to execute before a bean's initialization callback.
 void setAutowiredAnnotationType(java.lang.Class<? extends java.lang.annotation.Annotation> autowiredAnnotationType)
          Set the 'autowired' annotation type, to be used on constructors, fields, setter methods and arbitrary config methods.
 void setConstructorAnnotationType(java.lang.Class<? extends java.lang.annotation.Annotation> constructorAnnotationType)
          Sets the 'constructor' annotation type.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ConstructorAnnotationProcessor

public ConstructorAnnotationProcessor()
Method Detail

setAutowiredAnnotationType

public void setAutowiredAnnotationType(java.lang.Class<? extends java.lang.annotation.Annotation> autowiredAnnotationType)
Set the 'autowired' annotation type, to be used on constructors, fields, setter methods and arbitrary config methods.


getAutowiredAnnotationType

protected java.lang.Class<? extends java.lang.annotation.Annotation> getAutowiredAnnotationType()
Return the 'autowired' annotation type.


getConstructorAnnotationType

protected java.lang.Class<? extends java.lang.annotation.Annotation> getConstructorAnnotationType()
Return the 'constructor' annotation type.


setConstructorAnnotationType

public void setConstructorAnnotationType(java.lang.Class<? extends java.lang.annotation.Annotation> constructorAnnotationType)
Sets the 'constructor' annotation type.


postProcessBeforeInitialization

public java.lang.Object postProcessBeforeInitialization(java.lang.Object bean,
                                                        java.lang.String beanName)
                                                 throws BeansException
This method is used to execute before a bean's initialization callback.

Throws:
BeansException
See Also:
org.springframework.beans.factory.config.BeanPostProcessor#postProcessBeforeInitialization(java.lang.Object, java.lang.String)

postProcessAfterInitialization

public java.lang.Object postProcessAfterInitialization(java.lang.Object bean,
                                                       java.lang.String beanName)
                                                throws BeansException
This method is used to execute after a bean's initialization callback.

Throws:
BeansException
See Also:
org.springframework.beans.factory.config.BeanPostProcessor#postProcessAfterInitialization(java.lang.Object, java.lang.String)

determineCandidateConstructors

public java.lang.reflect.Constructor[] determineCandidateConstructors(java.lang.Class beanClass,
                                                                      java.lang.String beanName)
                                                               throws BeansException
Throws:
BeansException