|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object pt.digitalis.dif.dem.DEMRegistryImpl
public class DEMRegistryImpl
DIF entity model (DEM) Registry class. This class is populated by the code generation module. This module reads the
DEM annotations in classpath's classes, generates the appropriate code and populates the Registry. Since only one DEM
Registry is needed, the class implements the Singleton pattern. Note to class maintainers: all the attribute
accesses - even for setting/removing values - should be made through the supplied inspectors
getProviders()
, getApplications()
, getServices()
and getStages()
.
Accessing directly to the attributes does not guarantee that they are properly initialized. This need is due to the
fact that the code generation module inserts the proper attribute initialization code in the aforementioned getters,
so accessing through them is the only way to guarantee that they contain the proper data.
Method Summary | |
---|---|
static IApplication |
addApplication(pt.digitalis.utils.bytecode.holders.ClassHolder clazz)
Registers an application. |
static IEntity |
addEntity(Entity entityType,
pt.digitalis.utils.bytecode.holders.ClassHolder clazz)
Registers a provider. |
static IProvider |
addProvider(pt.digitalis.utils.bytecode.holders.ClassHolder clazz)
Registers a provider. |
static IService |
addService(pt.digitalis.utils.bytecode.holders.ClassHolder clazz)
Registers a service. |
static IStage |
addStage(pt.digitalis.utils.bytecode.holders.ClassHolder clazz)
Registers a stage. |
IApplication |
getApplication(String applicationID)
Returns an application associated with a given ID. |
static Map<String,IApplication> |
getApplications()
Returns the map of all registered applications. |
static IProvider |
getDefaultProvider()
Returns the default provider. |
static String |
getDefaultProviderID()
Returns the default provider id. |
IProvider |
getProvider(String providerID)
Returns a provider associated with a given ID. |
static Map<String,IProvider> |
getProviders()
Returns the map of all registered providers. |
static DEMRegistryImpl |
getRegistry()
Returns the DEMRegistryImpl instance (Singleton pattern). |
IService |
getService(String serviceID)
Returns a service associated with a given ID. |
static Map<String,IService> |
getServices()
Returns the map of all services registered. |
IStage |
getStage(String stageID)
Returns a stage associated with a given ID. |
static Map<String,IStage> |
getStages()
Returns the map of all stages registered. |
static void |
setDefaultProvider(String providerID)
Returns the default provider. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
---|
public static IApplication addApplication(pt.digitalis.utils.bytecode.holders.ClassHolder clazz)
clazz
- the application class to register
public static IEntity addEntity(Entity entityType, pt.digitalis.utils.bytecode.holders.ClassHolder clazz)
entityType
- the entity Type to be addedclazz
- the provider class to register
public static IProvider addProvider(pt.digitalis.utils.bytecode.holders.ClassHolder clazz)
clazz
- the provider class to register
public static IService addService(pt.digitalis.utils.bytecode.holders.ClassHolder clazz)
clazz
- the service class to register
public static IStage addStage(pt.digitalis.utils.bytecode.holders.ClassHolder clazz)
clazz
- the stage class to register
public static Map<String,IApplication> getApplications()
public static IProvider getDefaultProvider()
public static String getDefaultProviderID()
public static Map<String,IProvider> getProviders()
public static DEMRegistryImpl getRegistry()
public static Map<String,IService> getServices()
public static Map<String,IStage> getStages()
public static void setDefaultProvider(String providerID)
providerID
- the new default providerpublic IApplication getApplication(String applicationID)
IDEMRegistry
getApplication
in interface IDEMRegistry
applicationID
- the application ID
IDEMRegistry.getApplication(java.lang.String)
public IProvider getProvider(String providerID)
IDEMRegistry
getProvider
in interface IDEMRegistry
providerID
- the provider ID
IDEMRegistry.getProvider(java.lang.String)
public IService getService(String serviceID)
IDEMRegistry
getService
in interface IDEMRegistry
serviceID
- the service ID
IDEMRegistry.getService(java.lang.String)
public IStage getStage(String stageID)
IDEMRegistry
getStage
in interface IDEMRegistry
stageID
- the stage ID
IDEMRegistry.getStage(java.lang.String)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |