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

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

public class PropertyAnnotationProcessor
extends java.lang.Object


Constructor Summary
PropertyAnnotationProcessor(JavaPropertyValueObjectFactory propertyFactory, RuntimeComponent component)
           
 
Method Summary
protected  java.lang.Class<? extends java.lang.annotation.Annotation> getPropertyAnnotationType()
          Gets property annotation type.
 java.lang.Object getPropertyObj(java.lang.Class requiredType, java.lang.String name)
          Processes a property descriptor to inject a service.
 void injectProperty(java.lang.Object bean, java.beans.PropertyDescriptor pd, java.lang.Object propertyObj)
           
 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.
protected  void processAnnotation(java.lang.Object bean)
          Processes a beans fields for injection if it has a Property annotation.
 void setPropertyAnnotationType(java.lang.Class<? extends java.lang.annotation.Annotation> propertyAnnotationType)
          Sets property annotation type.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PropertyAnnotationProcessor

public PropertyAnnotationProcessor(JavaPropertyValueObjectFactory propertyFactory,
                                   RuntimeComponent component)
Method Detail

getPropertyAnnotationType

protected java.lang.Class<? extends java.lang.annotation.Annotation> getPropertyAnnotationType()
Gets property annotation type.


setPropertyAnnotationType

public void setPropertyAnnotationType(java.lang.Class<? extends java.lang.annotation.Annotation> propertyAnnotationType)
Sets property 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)

processAnnotation

protected void processAnnotation(java.lang.Object bean)

Processes a beans fields for injection if it has a Property annotation.


getPropertyObj

public java.lang.Object getPropertyObj(java.lang.Class requiredType,
                                       java.lang.String name)
Processes a property descriptor to inject a service.


injectProperty

public void injectProperty(java.lang.Object bean,
                           java.beans.PropertyDescriptor pd,
                           java.lang.Object propertyObj)