| java.lang.Object org.ow2.easybeans.enhancer.CommonClassGenerator org.ow2.easybeans.enhancer.interceptors.EasyBeansInvocationContextGenerator
Field Summary | |
final public static String | ARG Name of the attributes will start with this name with an index as suffix,
ie : arg0, arg1, arg2,... | final public static String | EASYBEANS_INVOCATION_CONTEXT EasyBeansInvocationContext interface. | final public static String | INTERCEPTOR Name of the interceptor attributes will start with this name with an index as suffix,
ie : interceptor0, interceptor1, interceptor2,... | final public static String[] | INTERFACES Interface of this invocation context. | final public static String | PACKAGE_NAME_PREFIX Prefix used as package name for generated classes
(EasyBeansInvocationContext* impl). | final public static String[] | PROCEED_EXCEPTIONS Exceptions of the proceed method. | final public static String | SUFFIX_CLASS Suffix for generated classes EasyBeansInvocationContextImpl. | final public static String | SUFFIX_INTERCEPTOR_MANAGER Suffix for InterceptorManager. |
ARG | final public static String ARG(Code) | | Name of the attributes will start with this name with an index as suffix,
ie : arg0, arg1, arg2,...
|
EASYBEANS_INVOCATION_CONTEXT | final public static String EASYBEANS_INVOCATION_CONTEXT(Code) | | EasyBeansInvocationContext interface.
|
INTERCEPTOR | final public static String INTERCEPTOR(Code) | | Name of the interceptor attributes will start with this name with an index as suffix,
ie : interceptor0, interceptor1, interceptor2,...
|
INTERFACES | final public static String[] INTERFACES(Code) | | Interface of this invocation context.
|
PACKAGE_NAME_PREFIX | final public static String PACKAGE_NAME_PREFIX(Code) | | Prefix used as package name for generated classes
(EasyBeansInvocationContext* impl).
|
PROCEED_EXCEPTIONS | final public static String[] PROCEED_EXCEPTIONS(Code) | | Exceptions of the proceed method.
|
SUFFIX_CLASS | final public static String SUFFIX_CLASS(Code) | | Suffix for generated classes EasyBeansInvocationContextImpl.
|
SUFFIX_INTERCEPTOR_MANAGER | final public static String SUFFIX_INTERCEPTOR_MANAGER(Code) | | Suffix for InterceptorManager.
|
EasyBeansInvocationContextGenerator | public EasyBeansInvocationContextGenerator(MethodAnnotationMetadata methodAnnotationMetadata, InterceptorType interceptorType)(Code) | | Constructor It will generate a class for the given method metadata.
Parameters: methodAnnotationMetadata - method meta data Parameters: interceptorType - the type of invocationContext to generate (AroundInvoke, PostConstruct, etc) |
addInvocationContextGetContextData | public void addInvocationContextGetContextData()(Code) | | Adds the getContextData() method.
public Map getContextData() {
if (contextData == null) {
contextData = new HashMap();
}
return contextData;
}
|
generate | public void generate()(Code) | | Generates the class. It call sub methods for being more clear for read
the code
|
getAllInterceptors | public List<JClassInterceptor> getAllInterceptors()(Code) | | the interceptors used by this InvocationContext implementation object. |
getBytes | public byte[] getBytes()(Code) | | the bytecode of the generated class. |
getConstructorDesc | public String getConstructorDesc()(Code) | | the ASM descriptor of the generated constructor. |
getGeneratedClassName | public String getGeneratedClassName()(Code) | | the name of the generated class name (with package name) |
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)
|
|
|