| org.ow2.easybeans.enhancer.interceptors.InterceptorClassAdapter
InterceptorClassAdapter | public class InterceptorClassAdapter extends ClassAdapter implements Opcodes(Code) | | This class delegates the creation of an implementation of a
EasyBeansInvocationContext interface and intercepts all business methods() of a
Bean.
author: Florent Benoit |
Method Summary | |
public List<DefinedClass> | getDefinedClasses() | public void | visit(int version, int access, String name, String signature, String superName, String[] interfaces) Visits the header of the class.
Parameters: version - the class version. Parameters: access - the class's access flags (seeorg.ow2.easybeans.asm.Opcodes). | public void | visitEnd() Visits the end of the class. | public void | visitInnerClass(String name, String outerName, String innerName, int access) Visits information about an inner class. | public MethodVisitor | visitMethod(int access, String name, String desc, String signature, String[] exceptions) Visits a method of the class. |
InterceptorClassAdapter | public InterceptorClassAdapter(ClassAnnotationMetadata classAnnotationMetadata, ClassVisitor cv)(Code) | | Constructor.
Parameters: classAnnotationMetadata - object containing all attributes of theclass Parameters: cv - the class visitor to which this adapter must delegate calls. |
InterceptorClassAdapter | public InterceptorClassAdapter(ClassAnnotationMetadata classAnnotationMetadata, ClassVisitor cv, boolean addInterface)(Code) | | Constructor.
Parameters: classAnnotationMetadata - object containing all attributes of theclass Parameters: cv - the class visitor to which this adapter must delegate calls. Parameters: addInterface - adds lifecycle interface for a given bean. |
getDefinedClasses | public List<DefinedClass> getDefinedClasses()(Code) | | list of classes generated and that need to be defined in aclassloader |
visit | public void visit(int version, int access, String name, String signature, String superName, String[] interfaces)(Code) | | Visits the header of the class.
Parameters: version - the class version. Parameters: access - the class's access flags (seeorg.ow2.easybeans.asm.Opcodes). This parameter also indicatesif the class is deprecated. Parameters: name - the internal name of the class (seeorg.ow2.easybeans.asm.Type.getInternalName getInternalName). Parameters: signature - the signature of this class. May be null ifthe class is not a generic one, and does not extend or implementgeneric classes or interfaces. Parameters: superName - the internal of name of the super class (seeorg.ow2.easybeans.asm.Type.getInternalName getInternalName).For interfaces, the super class is Object. May benull, but only for the Object class. Parameters: interfaces - the internal names of the class's interfaces (seeorg.ow2.easybeans.asm.Type.getInternalName getInternalName).May be null. |
visitEnd | public void visitEnd()(Code) | | Visits the end of the class. This method, which is the last one to be
called, is used to inform the visitor that all the fields and methods of
the class have been visited.
|
visitInnerClass | public void visitInnerClass(String name, String outerName, String innerName, int access)(Code) | | Visits information about an inner class. This inner class is not
necessarily a member of the class being visited.
Parameters: name - the internal name of an inner class (seeorg.ow2.easybeans.asm.Type.getInternalName getInternalName). Parameters: outerName - the internal name of the class to which the inner classbelongs (seeorg.ow2.easybeans.asm.Type.getInternalName getInternalName).May be null. Parameters: innerName - the (simple) name of the inner class inside itsenclosing class. May be null for anonymous innerclasses. Parameters: access - the access flags of the inner class as originally declaredin the enclosing class. |
visitMethod | public MethodVisitor visitMethod(int access, String name, String desc, String signature, String[] exceptions)(Code) | | Visits a method of the class. T
Parameters: access - the method's access flags (see Opcodes). Thisparameter also indicates if the method is synthetic and/ordeprecated. Parameters: name - the method's name. Parameters: desc - the method's descriptor (see org.ow2.easybeans.asm.Type). Parameters: signature - the method's signature. May be null if themethod parameters, return type and exceptions do not use generictypes. Parameters: exceptions - the internal names of the method's exception classes(seeorg.ow2.easybeans.asm.Type.getInternalName getInternalName).May be null. an object to visit the byte code of the method, or nullif this class visitor is not interested in visiting the code ofthis method. |
|
|