Tuscany Core

org.apache.tuscany.core.config.processor
Class ImplementationProcessorSupport

java.lang.Object
  extended by org.apache.tuscany.core.config.processor.ImplementationProcessorSupport
All Implemented Interfaces:
ImplementationProcessor
Direct Known Subclasses:
AutowireProcessor, ComponentNameProcessor, ContextProcessor, DefaultProcessor, DestroyProcessor, InitProcessor, MonitorProcessor, ParentContextProcessor, PropertyProcessor, PropertyReferenceValidator, ReferenceProcessor, ScopeProcessor, SDOHelperProcessor, ServiceProcessor

public abstract class ImplementationProcessorSupport
extends java.lang.Object
implements ImplementationProcessor

A base implementation of an ImplementationProcessor

Version:
$$Rev$$ $$Date$$

Field Summary
protected  org.apache.tuscany.model.assembly.AssemblyFactory factory
           
protected  ComponentTypeIntrospector introspector
           
 
Constructor Summary
protected ImplementationProcessorSupport()
           
protected ImplementationProcessorSupport(org.apache.tuscany.model.assembly.AssemblyFactory factory)
           
 
Method Summary
 void init()
           
 void setFactory(org.apache.tuscany.model.assembly.AssemblyFactory factory)
           
 void setIntrospector(ComponentTypeIntrospector introspector)
           
 void visitClass(java.lang.Class<?> clazz, org.apache.tuscany.model.assembly.ComponentType type)
           
 void visitConstructor(java.lang.reflect.Constructor<?> constructor, org.apache.tuscany.model.assembly.ComponentType type)
           
 void visitEnd(java.lang.Class<?> clazz, org.apache.tuscany.model.assembly.ComponentType type)
           
 void visitField(java.lang.reflect.Field field, org.apache.tuscany.model.assembly.ComponentType type)
           
 void visitInterface(java.lang.Class clazz, java.lang.annotation.Annotation[] annotations, org.apache.tuscany.model.assembly.ComponentType type)
           
 void visitInterfaceMethod(java.lang.reflect.Method method, java.lang.annotation.Annotation[] annotations, org.apache.tuscany.model.assembly.ComponentType type)
           
 void visitMethod(java.lang.reflect.Method method, org.apache.tuscany.model.assembly.ComponentType type)
           
 void visitSuperClass(java.lang.Class<?> clazz, org.apache.tuscany.model.assembly.ComponentType type)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

introspector

protected ComponentTypeIntrospector introspector

factory

protected org.apache.tuscany.model.assembly.AssemblyFactory factory
Constructor Detail

ImplementationProcessorSupport

protected ImplementationProcessorSupport(org.apache.tuscany.model.assembly.AssemblyFactory factory)

ImplementationProcessorSupport

protected ImplementationProcessorSupport()
Method Detail

init

public void init()
          throws java.lang.Exception
Throws:
java.lang.Exception

setIntrospector

public void setIntrospector(ComponentTypeIntrospector introspector)

setFactory

public void setFactory(org.apache.tuscany.model.assembly.AssemblyFactory factory)

visitClass

public void visitClass(java.lang.Class<?> clazz,
                       org.apache.tuscany.model.assembly.ComponentType type)
                throws ConfigurationLoadException
Specified by:
visitClass in interface ImplementationProcessor
Throws:
ConfigurationLoadException

visitSuperClass

public void visitSuperClass(java.lang.Class<?> clazz,
                            org.apache.tuscany.model.assembly.ComponentType type)
                     throws ConfigurationLoadException
Specified by:
visitSuperClass in interface ImplementationProcessor
Throws:
ConfigurationLoadException

visitMethod

public void visitMethod(java.lang.reflect.Method method,
                        org.apache.tuscany.model.assembly.ComponentType type)
                 throws ConfigurationLoadException
Specified by:
visitMethod in interface ImplementationProcessor
Throws:
ConfigurationLoadException

visitConstructor

public void visitConstructor(java.lang.reflect.Constructor<?> constructor,
                             org.apache.tuscany.model.assembly.ComponentType type)
                      throws ConfigurationLoadException
Specified by:
visitConstructor in interface ImplementationProcessor
Throws:
ConfigurationLoadException

visitField

public void visitField(java.lang.reflect.Field field,
                       org.apache.tuscany.model.assembly.ComponentType type)
                throws ConfigurationLoadException
Specified by:
visitField in interface ImplementationProcessor
Throws:
ConfigurationLoadException

visitInterface

public void visitInterface(java.lang.Class clazz,
                           java.lang.annotation.Annotation[] annotations,
                           org.apache.tuscany.model.assembly.ComponentType type)
                    throws ConfigurationLoadException
Throws:
ConfigurationLoadException

visitInterfaceMethod

public void visitInterfaceMethod(java.lang.reflect.Method method,
                                 java.lang.annotation.Annotation[] annotations,
                                 org.apache.tuscany.model.assembly.ComponentType type)
                          throws ConfigurationLoadException
Throws:
ConfigurationLoadException

visitEnd

public void visitEnd(java.lang.Class<?> clazz,
                     org.apache.tuscany.model.assembly.ComponentType type)
              throws ConfigurationLoadException
Specified by:
visitEnd in interface ImplementationProcessor
Throws:
ConfigurationLoadException

Tuscany Core

-