|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface RegistryDefinition
Defines all modules and their service and configuration points
which build a registry. The definition is a blueprint from which
a registry instance is constructed.
The definition is passed to RegistryBuilder
for the next phase:
the registry construction.
From that moment on the definition shouldn't be changed any longer.
Method Summary | |
---|---|
void |
addModule(ModuleDefinition module)
Adds a module definition. |
void |
addPostProcessor(RegistryDefinitionPostProcessor postProcessor)
Adds a RegistryDefinitionPostProcessor . |
void |
addRegistryInitializationListener(RegistryInitializationListener listener)
Adds a RegistryInitializationListener which is called after the
construction of the registry. |
ConfigurationPointDefinition |
getConfigurationPoint(java.lang.String qualifiedConfigurationPointId)
Returns a configuration point that is identified by its id. |
ModuleDefinition |
getModule(java.lang.String id)
Returns a module that is identified by its module id. |
java.util.Collection |
getModules()
|
java.util.List |
getPostProcessors()
|
java.util.List |
getRegistryInitializationListeners()
|
ServicePointDefinition |
getServicePoint(java.lang.String qualifiedServicePointId)
Returns a service point that is identified by its id. |
Method Detail |
---|
void addModule(ModuleDefinition module) throws ApplicationRuntimeException
module
- the module
ApplicationRuntimeException
- if another module with the same id already exists.java.util.Collection getModules()
modules
ModuleDefinition getModule(java.lang.String id)
id
- the module id
void addPostProcessor(RegistryDefinitionPostProcessor postProcessor)
RegistryDefinitionPostProcessor
. The processor is called after all
module definitions have been processed.
postProcessor
- the processorjava.util.List getPostProcessors()
RegistryDefinitionPostProcessor
svoid addRegistryInitializationListener(RegistryInitializationListener listener)
RegistryInitializationListener
which is called after the
construction of the registry.
listener
- the listenerjava.util.List getRegistryInitializationListeners()
RegistryInitializationListener
sServicePointDefinition getServicePoint(java.lang.String qualifiedServicePointId)
qualifiedServicePointId
- the fully qualified service point id
ConfigurationPointDefinition getConfigurationPoint(java.lang.String qualifiedConfigurationPointId)
qualifiedConfigurationPointId
- the fully qualified configuration point id
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |