|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object pt.digitalis.dif.codegen.util.DEMLoaderEntityRegistry
public final class DEMLoaderEntityRegistry
A temporary registry of DEM entities that helps the codegen utility to track down all entities on a first pass
Constructor Summary | |
---|---|
DEMLoaderEntityRegistry()
|
Method Summary | |
---|---|
static void |
addApplication(String id,
pt.digitalis.utils.bytecode.holders.ClassHolder clazz)
Adds a application class to the temp DEM registry |
static void |
addProvider(String id,
pt.digitalis.utils.bytecode.holders.ClassHolder clazz)
Adds a provider class to the temp DEM registry |
static void |
addService(String id,
pt.digitalis.utils.bytecode.holders.ClassHolder clazz)
Adds a service class to the temp DEM registry |
static void |
addStage(String id,
pt.digitalis.utils.bytecode.holders.ClassHolder clazz)
Adds a stage class to the temp DEM registry |
static void |
addValidator(String id,
pt.digitalis.utils.bytecode.holders.ClassHolder clazz)
Adds a validator class to the temp DEM registry |
static void |
cleanUp()
Performs memory clean up by releasing the internal Maps of entities when they are no longer needed. |
static pt.digitalis.utils.bytecode.holders.ClassHolder |
getApplication(String id)
Searches the applications for the entry with the given ID |
static int |
getApplicationCount()
Returns the registered applications count |
static Map<String,pt.digitalis.utils.bytecode.holders.ClassHolder> |
getApplications()
Returns the Map of registered applications with the ID and their class objects |
static int |
getEntityCount()
Returns the total number of entities registered |
static pt.digitalis.utils.bytecode.holders.ClassHolder |
getProvider(String id)
Searches the providers for the entry with the given ID |
static int |
getProviderCount()
Returns the registered providers count |
static Map<String,pt.digitalis.utils.bytecode.holders.ClassHolder> |
getProviders()
Returns the Map of registered providers with the ID and their class objects |
static pt.digitalis.utils.bytecode.holders.ClassHolder |
getService(String id)
Searches the services for the entry with the given ID |
static int |
getServiceCount()
Returns the registered services count |
static Map<String,pt.digitalis.utils.bytecode.holders.ClassHolder> |
getServices()
Returns the Map of registered services with the ID and their class objects |
static pt.digitalis.utils.bytecode.holders.ClassHolder |
getStage(String id)
Searches the stages for the entry with the given ID |
static int |
getStageCount()
Returns the registered stages count |
static Map<String,pt.digitalis.utils.bytecode.holders.ClassHolder> |
getStages()
Returns the Map of registered stages with the ID and their class objects |
static pt.digitalis.utils.bytecode.holders.ClassHolder |
getValidator(String id)
Searches the validators for the entry with the given ID |
static int |
getValidatorCount()
Returns the registered validators count |
static Map<String,pt.digitalis.utils.bytecode.holders.ClassHolder> |
getValidators()
Returns the Map of registered validators with the ID and their class objects |
static void |
loadEntityClasses(List<pt.digitalis.utils.bytecode.holders.ClassHolder> classes,
IDEMRegistrator demRegistrator)
Analyzes the given classes to determine witch of them are DEM Entity. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public DEMLoaderEntityRegistry()
Method Detail |
---|
public static void addApplication(String id, pt.digitalis.utils.bytecode.holders.ClassHolder clazz)
id
- the ID of the DEM Entityclazz
- the class object that represents the Entitypublic static void addProvider(String id, pt.digitalis.utils.bytecode.holders.ClassHolder clazz)
id
- the ID of the DEM Entityclazz
- the class object that represents the Entitypublic static void addService(String id, pt.digitalis.utils.bytecode.holders.ClassHolder clazz)
id
- the ID of the DEM Entityclazz
- the class object that represents the Entitypublic static void addStage(String id, pt.digitalis.utils.bytecode.holders.ClassHolder clazz)
id
- the ID of the DEM Entityclazz
- the class object that represents the Entitypublic static void addValidator(String id, pt.digitalis.utils.bytecode.holders.ClassHolder clazz)
id
- the ID of the DEM Entityclazz
- the class object that represents the Entitypublic static void cleanUp()
public static pt.digitalis.utils.bytecode.holders.ClassHolder getApplication(String id)
id
- the ID of the Entity to search
public static int getApplicationCount()
public static Map<String,pt.digitalis.utils.bytecode.holders.ClassHolder> getApplications()
public static int getEntityCount()
public static pt.digitalis.utils.bytecode.holders.ClassHolder getProvider(String id)
id
- the ID of the Entity to search
public static int getProviderCount()
public static Map<String,pt.digitalis.utils.bytecode.holders.ClassHolder> getProviders()
public static pt.digitalis.utils.bytecode.holders.ClassHolder getService(String id)
id
- the ID of the Entity to search
public static int getServiceCount()
public static Map<String,pt.digitalis.utils.bytecode.holders.ClassHolder> getServices()
public static pt.digitalis.utils.bytecode.holders.ClassHolder getStage(String id)
id
- the ID of the Entity to search
public static int getStageCount()
public static Map<String,pt.digitalis.utils.bytecode.holders.ClassHolder> getStages()
public static pt.digitalis.utils.bytecode.holders.ClassHolder getValidator(String id)
id
- the ID of the Entity to search
public static int getValidatorCount()
public static Map<String,pt.digitalis.utils.bytecode.holders.ClassHolder> getValidators()
public static void loadEntityClasses(List<pt.digitalis.utils.bytecode.holders.ClassHolder> classes, IDEMRegistrator demRegistrator) throws pt.digitalis.utils.inspection.exception.ResourceNotFoundException, ClassNotFoundException, InstantiationException, IllegalAccessException
classes
- the classes to analyzedemRegistrator
- the DEM registrator
pt.digitalis.utils.inspection.exception.ResourceNotFoundException
- if any class could not be found or an annotation can't be read
IllegalAccessException
InstantiationException
ClassNotFoundException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |