cuba.util.ddgen.tokens
Class ComponentAnnotationReader
java.lang.Object
cuba.util.ddgen.tokens.ComponentAnnotationReader
- All Implemented Interfaces:
- ComponentReaderI
public class ComponentAnnotationReader
- extends java.lang.Object
- implements ComponentReaderI
This class reads a module's meta data from the annotations of a number
of classes and provides its content as a list of CUBAComponent
s.
In general, this class does the same job as the ComponentDescriptorReader
,
just using another input source.
Field Summary |
protected java.lang.String[] |
classNames
|
Method Summary |
protected void |
addBaseInterceptors(java.lang.Class current,
CUBAComponent componentObject)
|
protected java.lang.String |
extractComponentScope(java.lang.String interfaceName)
|
protected java.lang.String |
extractMemberName(java.lang.reflect.Method setter)
|
protected void |
initReference(Reference ref,
java.lang.reflect.Field field,
java.lang.String refName,
java.lang.Class refType,
java.lang.String link)
|
protected void |
initReference(Reference ref,
java.lang.reflect.Method setter,
java.lang.String refName,
java.lang.Class refType,
java.lang.String link)
|
protected void |
initReference(Reference ref,
java.lang.String refName,
java.lang.Class refType,
java.lang.String link)
|
protected boolean |
isInterfaceMethod(java.lang.reflect.Method m,
CUBAComponent componentObject)
|
protected boolean |
isInterfaceMethod(java.lang.reflect.Method m,
java.lang.String compInterfaceName)
|
protected void |
processClass(java.lang.String className,
CUBAComponent componentObject)
|
protected void |
processCompInterface(java.lang.Class compClass,
CUBAComponent componentObject)
|
protected void |
processComponentRefMembers(java.lang.Class compClass,
CUBAComponent componentObject)
|
protected void |
processComponentRefSetters(java.lang.Class compClass,
CUBAComponent componentObject)
|
protected void |
processCompType(java.lang.Class compClass,
CUBAComponent componentObject)
|
protected void |
processEntityManagerRefMembers(java.lang.Class compClass,
CUBAComponent componentObject)
|
protected void |
processEntityManagerRefSetters(java.lang.Class compClass,
CUBAComponent componentObject)
|
protected void |
processImplementedRefSetters(java.lang.Class compClass,
CUBAComponent componentObject)
|
protected void |
processInterceptorMethods(java.lang.Class interceptorClass,
Interception interception)
|
protected void |
processInterceptors(java.lang.Class compClass,
CUBAComponent componentObject)
|
protected void |
processResource(Resource resource,
CUBAComponent componentObject)
|
protected void |
processResourceRefMembers(java.lang.Class compClass,
CUBAComponent componentObject)
|
protected void |
processResourceRefSetters(java.lang.Class compClass,
CUBAComponent componentObject)
|
protected void |
processResources(java.lang.Class compClass,
CUBAComponent componentObject)
|
protected void |
processTransactionAttributes(java.lang.Class compClass,
TransactionAttributeType defaultAttrType,
CUBAComponent componentObject)
|
protected TransactionAttributeType |
processTransactionManagement(java.lang.Class compClass,
CUBAComponent componentObject)
|
java.util.ArrayList |
readComponents()
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
classNames
protected java.lang.String[] classNames
ComponentAnnotationReader
public ComponentAnnotationReader(java.lang.String[] classNames)
readComponents
public java.util.ArrayList readComponents()
throws GeneratorException
- Specified by:
readComponents
in interface ComponentReaderI
- Throws:
GeneratorException
processCompType
protected void processCompType(java.lang.Class compClass,
CUBAComponent componentObject)
throws GeneratorException
- Throws:
GeneratorException
processCompInterface
protected void processCompInterface(java.lang.Class compClass,
CUBAComponent componentObject)
throws GeneratorException
- Throws:
GeneratorException
processTransactionManagement
protected TransactionAttributeType processTransactionManagement(java.lang.Class compClass,
CUBAComponent componentObject)
isInterfaceMethod
protected boolean isInterfaceMethod(java.lang.reflect.Method m,
java.lang.String compInterfaceName)
isInterfaceMethod
protected boolean isInterfaceMethod(java.lang.reflect.Method m,
CUBAComponent componentObject)
processTransactionAttributes
protected void processTransactionAttributes(java.lang.Class compClass,
TransactionAttributeType defaultAttrType,
CUBAComponent componentObject)
throws GeneratorException
- Throws:
GeneratorException
extractComponentScope
protected java.lang.String extractComponentScope(java.lang.String interfaceName)
throws GeneratorException
- Throws:
GeneratorException
extractMemberName
protected java.lang.String extractMemberName(java.lang.reflect.Method setter)
throws GeneratorException
- Throws:
GeneratorException
initReference
protected void initReference(Reference ref,
java.lang.reflect.Method setter,
java.lang.String refName,
java.lang.Class refType,
java.lang.String link)
throws GeneratorException
- Throws:
GeneratorException
initReference
protected void initReference(Reference ref,
java.lang.reflect.Field field,
java.lang.String refName,
java.lang.Class refType,
java.lang.String link)
throws GeneratorException
- Throws:
GeneratorException
initReference
protected void initReference(Reference ref,
java.lang.String refName,
java.lang.Class refType,
java.lang.String link)
throws GeneratorException
- Throws:
GeneratorException
processComponentRefMembers
protected void processComponentRefMembers(java.lang.Class compClass,
CUBAComponent componentObject)
throws GeneratorException
- Throws:
GeneratorException
processEntityManagerRefMembers
protected void processEntityManagerRefMembers(java.lang.Class compClass,
CUBAComponent componentObject)
throws GeneratorException
- Throws:
GeneratorException
processComponentRefSetters
protected void processComponentRefSetters(java.lang.Class compClass,
CUBAComponent componentObject)
throws GeneratorException
- Throws:
GeneratorException
processEntityManagerRefSetters
protected void processEntityManagerRefSetters(java.lang.Class compClass,
CUBAComponent componentObject)
throws GeneratorException
- Throws:
GeneratorException
processResourceRefMembers
protected void processResourceRefMembers(java.lang.Class compClass,
CUBAComponent componentObject)
throws GeneratorException
- Throws:
GeneratorException
processResourceRefSetters
protected void processResourceRefSetters(java.lang.Class compClass,
CUBAComponent componentObject)
throws GeneratorException
- Throws:
GeneratorException
processInterceptorMethods
protected void processInterceptorMethods(java.lang.Class interceptorClass,
Interception interception)
throws GeneratorException
- Throws:
GeneratorException
addBaseInterceptors
protected void addBaseInterceptors(java.lang.Class current,
CUBAComponent componentObject)
throws GeneratorException
- Throws:
GeneratorException
processInterceptors
protected void processInterceptors(java.lang.Class compClass,
CUBAComponent componentObject)
throws GeneratorException
- Throws:
GeneratorException
processImplementedRefSetters
protected void processImplementedRefSetters(java.lang.Class compClass,
CUBAComponent componentObject)
throws GeneratorException
- Throws:
GeneratorException
processResource
protected void processResource(Resource resource,
CUBAComponent componentObject)
throws GeneratorException
- Throws:
GeneratorException
processResources
protected void processResources(java.lang.Class compClass,
CUBAComponent componentObject)
throws GeneratorException
- Throws:
GeneratorException
processClass
protected void processClass(java.lang.String className,
CUBAComponent componentObject)
throws GeneratorException
- Throws:
GeneratorException