|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface JavaClassVisitor
Implementations process class-level metadata, typically parsing annotations
and updating the corresponding ComponentType
. A processor
may, for example, create a Property which is responsible for injecting a
complex type on a component implementation instance when it is instantiated.
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 |
Method Detail |
---|
<T> void visitClass(java.lang.Class<T> clazz, JavaImplementation type) throws IntrospectionException
clazz
- the component implementation classtype
- the incomplete component type associated with the
implementation class
IntrospectionException
- if an error is encountered while processing
metadata<T> void visitSuperClass(java.lang.Class<T> clazz, JavaImplementation type) throws IntrospectionException
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
metadatavoid visitMethod(java.lang.reflect.Method method, JavaImplementation type) throws IntrospectionException
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
metadata<T> void visitConstructor(java.lang.reflect.Constructor<T> constructor, JavaImplementation type) throws IntrospectionException
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
metadatavoid visitConstructorParameter(JavaParameterImpl parameter, JavaImplementation type) throws IntrospectionException
parameter
- type
-
IntrospectionException
void visitField(java.lang.reflect.Field field, JavaImplementation type) throws IntrospectionException
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
metadata<T> void visitEnd(java.lang.Class<T> clazz, JavaImplementation type) throws IntrospectionException
clazz
- the component implementation classtype
- the incomplete component type associated with the
implementation class
IntrospectionException
- if an error is encountered while processing
metadata
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |