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

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

public class ScopeProcessor
extends BaseJavaClassVisitor

Processes the JavaScopeImpl annotation and updates the component type with the corresponding implmentation scope


Field Summary
 
Fields inherited from class org.apache.tuscany.sca.implementation.java.introspect.impl.BaseJavaClassVisitor
assemblyFactory
 
Constructor Summary
ScopeProcessor(AssemblyFactory factory)
           
 
Method Summary
<T> void
visitClass(java.lang.Class<T> clazz, JavaImplementation type)
          A callback received when the component implementation class is first loaded
 
Methods inherited from class org.apache.tuscany.sca.implementation.java.introspect.impl.BaseJavaClassVisitor
visitConstructor, visitConstructorParameter, visitEnd, visitField, visitMethod, visitSuperClass
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ScopeProcessor

public ScopeProcessor(AssemblyFactory factory)
Method Detail

visitClass

public <T> void visitClass(java.lang.Class<T> clazz,
                           JavaImplementation type)
                throws IntrospectionException
Description copied from interface: JavaClassVisitor
A callback received when the component implementation class is first loaded

Specified by:
visitClass in interface JavaClassVisitor
Overrides:
visitClass in class BaseJavaClassVisitor
Parameters:
clazz - the component implementation class
type - the incomplete component type associated with the implementation class
Throws:
IntrospectionException - if an error is encountered while processing metadata