|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object pt.digitalis.dif.codegen.util.DEMLoaderHelper
public final class DEMLoaderHelper
Holds the list of packages that will be searched for Entity classes by the DIFCodeGenerator. Provides methods to add packages to the list of packages, and to access the list.
Field Summary | |
---|---|
static String |
APPLICATIONS_DIR
'Applications' folder name by convention. |
static String |
PROVIDERS_DIR
'Providers' folder name by convention. |
static String |
SERVICES_DIR
'Services' folder name by convention. |
static String |
STAGES_DIR
'Stages' folder name by convention. |
static String |
VALIDATORS_DIR
'Validators' folder name by convention. |
Method Summary | |
---|---|
static boolean |
addPackage(String packageName)
Adds a package to the packageList after validating that this package does not already exist or is contained in an existing parent package |
static void |
cleanUp()
Makes internal package list eligible for GC when it is no longer needed. |
static Map<String,DEMAnnotationLogic> |
getAnnotationLogicMap()
Builds a map of all DEM annotations with associated logic. |
static List<String> |
getDEMAnnotations()
Returns a list with the names of all DEM annotations classes. |
static List<String> |
getDEMEntitiesAnnontations()
Returns a list with the defined DEM Entity Annotation FQNs for the framework |
static List<pt.digitalis.utils.bytecode.holders.ClassHolder> |
getDEMEntityClassesInPackage(String packageName)
Searches a given package for DEM Entity annotated classes. |
static List<String> |
getPackageList()
Return the list of packages. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final String PROVIDERS_DIR
public static final String APPLICATIONS_DIR
public static final String SERVICES_DIR
public static final String STAGES_DIR
public static final String VALIDATORS_DIR
Method Detail |
---|
public static boolean addPackage(String packageName)
packageName
- the name of the package to add
public static List<String> getPackageList()
public static void cleanUp()
public static List<pt.digitalis.utils.bytecode.holders.ClassHolder> getDEMEntityClassesInPackage(String packageName) throws pt.digitalis.utils.inspection.exception.ResourceNotFoundException
packageName
- the package to search for DEM classes
pt.digitalis.utils.inspection.exception.ResourceNotFoundException
- if package is not foundpublic static Map<String,DEMAnnotationLogic> getAnnotationLogicMap() throws pt.digitalis.utils.inspection.exception.ResourceNotFoundException, pt.digitalis.utils.inspection.exception.AuxiliaryOperationException
pt.digitalis.utils.inspection.exception.ResourceNotFoundException
- if DEM annotations classes can't be found
pt.digitalis.utils.inspection.exception.AuxiliaryOperationException
- if a DEMAnnotationLogic object can't be createdpublic static List<String> getDEMAnnotations() throws pt.digitalis.utils.inspection.exception.ResourceNotFoundException
pt.digitalis.utils.inspection.exception.ResourceNotFoundException
- if some needed resource is not foundpublic static List<String> getDEMEntitiesAnnontations() throws pt.digitalis.utils.inspection.exception.ResourceNotFoundException
pt.digitalis.utils.inspection.exception.ResourceNotFoundException
- if DEM annotations classes can't be found
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |