org.apache.tuscany.sca.implementation.java.introspect.impl
Class ReferenceProcessor

java.lang.Object
  extended by org.apache.tuscany.sca.implementation.java.introspect.impl.BaseJavaClassVisitor
      extended by org.apache.tuscany.sca.implementation.java.introspect.impl.ReferenceProcessor
All Implemented Interfaces:
JavaClassVisitor

public class ReferenceProcessor
extends BaseJavaClassVisitor

Processes an @Reference annotation, updating the component type with corresponding org.apache.tuscany.spi.implementation.java.JavaMappedReference


Field Summary
 
Fields inherited from class org.apache.tuscany.sca.implementation.java.introspect.impl.BaseJavaClassVisitor
assemblyFactory
 
Constructor Summary
ReferenceProcessor(AssemblyFactory assemblyFactory, JavaInterfaceFactory javaFactory)
           
 
Method Summary
 void visitConstructorParameter(JavaParameterImpl parameter, JavaImplementation type)
           
 void visitField(java.lang.reflect.Field field, JavaImplementation type)
          A callback received as the component implementation's public and protected fields are evaluated
 void visitMethod(java.lang.reflect.Method method, JavaImplementation type)
          A callback received as the component implementation's public and protected methods are evaluated
 
Methods inherited from class org.apache.tuscany.sca.implementation.java.introspect.impl.BaseJavaClassVisitor
visitClass, visitConstructor, visitEnd, visitSuperClass
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ReferenceProcessor

public ReferenceProcessor(AssemblyFactory assemblyFactory,
                          JavaInterfaceFactory javaFactory)
Method Detail

visitMethod

public void visitMethod(java.lang.reflect.Method method,
                        JavaImplementation type)
                 throws IntrospectionException
Description copied from interface: JavaClassVisitor
A callback received as the component implementation's public and protected methods are evaluated

Specified by:
visitMethod in interface JavaClassVisitor
Overrides:
visitMethod in class BaseJavaClassVisitor
Parameters:
method - the current public or protected method being evaluated
type - the incomplete component type associated with the implementation class
Throws:
IntrospectionException - if an error is encountered while processing metadata

visitField

public void visitField(java.lang.reflect.Field field,
                       JavaImplementation type)
                throws IntrospectionException
Description copied from interface: JavaClassVisitor
A callback received as the component implementation's public and protected fields are evaluated

Specified by:
visitField in interface JavaClassVisitor
Overrides:
visitField in class BaseJavaClassVisitor
Parameters:
field - the current public or protected field being evaluated
type - the incomplete component type associated with the implementation class
Throws:
IntrospectionException - if an error is encountered while processing metadata

visitConstructorParameter

public void visitConstructorParameter(JavaParameterImpl parameter,
                                      JavaImplementation type)
                               throws IntrospectionException
Specified by:
visitConstructorParameter in interface JavaClassVisitor
Overrides:
visitConstructorParameter in class BaseJavaClassVisitor
Throws:
IntrospectionException