|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.tuscany.sca.implementation.java.introspect.impl.BaseJavaClassVisitor
public abstract class BaseJavaClassVisitor
A convenience class for annotation processors which alleviates the need to implement unused callbacks
Field Summary | |
---|---|
protected AssemblyFactory |
assemblyFactory
|
Constructor Summary | |
---|---|
protected |
BaseJavaClassVisitor(AssemblyFactory factory)
|
Method Summary | ||
---|---|---|
|
visitClass(java.lang.Class<T> clazz,
JavaImplementation type)
A callback received when the component implementation class is first loaded |
|
|
visitConstructor(java.lang.reflect.Constructor<T> constructor,
JavaImplementation type)
A callback received as the component implementation's constructor used for instantiation by the runtime is evaluated. |
|
void |
visitConstructorParameter(JavaParameterImpl parameter,
JavaImplementation type)
|
|
|
visitEnd(java.lang.Class<T> clazz,
JavaImplementation type)
The final callback received when all other callbacks during evaluation of the component implementation have been issued |
|
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 |
|
|
visitSuperClass(java.lang.Class<T> clazz,
JavaImplementation type)
A callback received as the component implementation class hierarchy is evaluated |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected AssemblyFactory assemblyFactory
Constructor Detail |
---|
protected BaseJavaClassVisitor(AssemblyFactory factory)
Method Detail |
---|
public <T> void visitClass(java.lang.Class<T> clazz, JavaImplementation type) throws IntrospectionException
JavaClassVisitor
visitClass
in interface JavaClassVisitor
clazz
- the component implementation classtype
- the incomplete component type associated with the
implementation class
IntrospectionException
- if an error is encountered while processing
metadatapublic <T> void visitSuperClass(java.lang.Class<T> clazz, JavaImplementation type) throws IntrospectionException
JavaClassVisitor
visitSuperClass
in interface JavaClassVisitor
clazz
- the superclass in the component implmentation's class
hierarchytype
- the incomplete component type associated with the
implementation class
IntrospectionException
- if an error is encountered while processing
metadatapublic void visitMethod(java.lang.reflect.Method method, JavaImplementation type) throws IntrospectionException
JavaClassVisitor
visitMethod
in interface JavaClassVisitor
method
- the current public or protected method being evaluatedtype
- the incomplete component type associated with the
implementation class
IntrospectionException
- if an error is encountered while processing
metadatapublic <T> void visitConstructor(java.lang.reflect.Constructor<T> constructor, JavaImplementation type) throws IntrospectionException
JavaClassVisitor
visitConstructor
in interface JavaClassVisitor
constructor
- the constructor used for instantiating component
implementation instancestype
- the incomplete component type associated with the
implementation class
IntrospectionException
- if an error is encountered while processing
metadatapublic void visitField(java.lang.reflect.Field field, JavaImplementation type) throws IntrospectionException
JavaClassVisitor
visitField
in interface JavaClassVisitor
field
- the current public or protected field being evaluatedtype
- the incomplete component type associated with the
implementation class
IntrospectionException
- if an error is encountered while processing
metadatapublic <T> void visitEnd(java.lang.Class<T> clazz, JavaImplementation type) throws IntrospectionException
JavaClassVisitor
visitEnd
in interface JavaClassVisitor
clazz
- the component implementation classtype
- the incomplete component type associated with the
implementation class
IntrospectionException
- if an error is encountered while processing
metadatapublic void visitConstructorParameter(JavaParameterImpl parameter, JavaImplementation type) throws IntrospectionException
visitConstructorParameter
in interface JavaClassVisitor
IntrospectionException
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |