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

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

public class ReferenceAnnotationProcessor
extends java.lang.Object


Constructor Summary
ReferenceAnnotationProcessor(RuntimeComponent component)
           
 
Method Summary
protected  java.lang.Class<? extends java.lang.annotation.Annotation> getReferenceAnnotationType()
          Gets referece annotation type.
 void injectReference(java.lang.Object bean, java.beans.PropertyDescriptor pd, java.lang.String name)
          Processes a property descriptor to inject a service.
 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 Reference annotation.
 void setReferenceAnnotationType(java.lang.Class<? extends java.lang.annotation.Annotation> referenceAnnotationType)
          Sets referece annotation type.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ReferenceAnnotationProcessor

public ReferenceAnnotationProcessor(RuntimeComponent component)
Method Detail

getReferenceAnnotationType

protected java.lang.Class<? extends java.lang.annotation.Annotation> getReferenceAnnotationType()
Gets referece annotation type.


setReferenceAnnotationType

public void setReferenceAnnotationType(java.lang.Class<? extends java.lang.annotation.Annotation> referenceAnnotationType)
Sets referece 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 Reference annotation.


injectReference

public void injectReference(java.lang.Object bean,
                            java.beans.PropertyDescriptor pd,
                            java.lang.String name)
Processes a property descriptor to inject a service.