| java.lang.Object org.ow2.easybeans.enhancer.CommonClassGenerator org.ow2.easybeans.enhancer.interceptors.InterceptorManagerGenerator
InterceptorManagerGenerator | public class InterceptorManagerGenerator extends CommonClassGenerator (Code) | | This generates a class that manage the interceptor of a given bean. It
manages the lifecycle of the interceptors and allow to inject resources
(dependency injection).
author: Florent Benoit |
Field Summary | |
final public static String[] | INTERFACES Interface of this invocation context. |
Method Summary | |
public void | generate() Generates the class. | public byte[] | getBytes() |
INTERFACES | final public static String[] INTERFACES(Code) | | Interface of this invocation context.
|
InterceptorManagerGenerator | public InterceptorManagerGenerator(EjbJarAnnotationMetadata ejbJarAnnotationMetadata, String generatedClassName, List<String> allInterceptors)(Code) | | Constructor.
Parameters: ejbJarAnnotationMetadata - the metadata to search interceptor class metadata. Parameters: generatedClassName - the name of the class to generate. Parameters: allInterceptors - interceptors that needs to be managed. |
generate | public void generate()(Code) | | Generates the class. It call sub methods for being more clear for read
the code
|
getBytes | public byte[] getBytes()(Code) | | the bytecode of the generated class. |
Methods inherited from org.ow2.easybeans.enhancer.CommonClassGenerator | protected void addAttribute(int access, String name, String desc)(Code)(Java Doc) protected void addAttribute(int access, String name, String desc, Object value)(Code)(Java Doc) public static void addFieldGettersSetters(ClassVisitor cv, String beanClassName, String fieldName, Class clazz)(Code)(Java Doc) public static void addFieldGettersSetters(ClassVisitor cv, String beanClassName, String fieldName, String className)(Code)(Java Doc) public static void addNullGetter(ClassVisitor cv, String getterName, Class clazz)(Code)(Java Doc) public static void addReturnType(Type type, MethodVisitor mv)(Code)(Java Doc) public static String encodeArrayClassDesc(String className)(Code)(Java Doc) public static String encodeClassDesc(String className)(Code)(Java Doc) public ClassWriter getCW()(Code)(Java Doc) public static int putFieldLoadOpCode(int sortCode)(Code)(Java Doc) public static void returnsObject(Type returnType, MethodVisitor mv)(Code)(Java Doc) public static void transformObjectIntoPrimitive(Type type, MethodVisitor mv)(Code)(Java Doc) public static void transformPrimitiveIntoObject(Type type, MethodVisitor mv)(Code)(Java Doc) public static void visitClassType(Type type, MethodVisitor mv)(Code)(Java Doc)
|
|
|