org.apache.hivemind.definition.impl
Class RegistryDefinitionImpl

java.lang.Object
  extended by org.apache.hivemind.definition.impl.RegistryDefinitionImpl
All Implemented Interfaces:
RegistryDefinition

public class RegistryDefinitionImpl
extends java.lang.Object
implements RegistryDefinition

Default implementation of RegistryDefinition.

Author:
Achim Huegen

Constructor Summary
RegistryDefinitionImpl()
           
 
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.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

RegistryDefinitionImpl

public RegistryDefinitionImpl()
Method Detail

addModule

public void addModule(ModuleDefinition module)
               throws ApplicationRuntimeException
Description copied from interface: RegistryDefinition
Adds a module definition.

Specified by:
addModule in interface RegistryDefinition
Parameters:
module - the module
Throws:
ApplicationRuntimeException - if another module with the same id already exists.
See Also:
RegistryDefinition.addModule(org.apache.hivemind.definition.ModuleDefinition)

addPostProcessor

public void addPostProcessor(RegistryDefinitionPostProcessor postProcessor)
Description copied from interface: RegistryDefinition
Adds a RegistryDefinitionPostProcessor. The processor is called after all module definitions have been processed.

Specified by:
addPostProcessor in interface RegistryDefinition
Parameters:
postProcessor - the processor
See Also:
RegistryDefinition.addPostProcessor(org.apache.hivemind.definition.RegistryDefinitionPostProcessor)

getPostProcessors

public java.util.List getPostProcessors()
Specified by:
getPostProcessors in interface RegistryDefinition
Returns:
a collection of all registered RegistryDefinitionPostProcessors
See Also:
RegistryDefinition.getPostProcessors()

addRegistryInitializationListener

public void addRegistryInitializationListener(RegistryInitializationListener listener)
Description copied from interface: RegistryDefinition
Adds a RegistryInitializationListener which is called after the construction of the registry.

Specified by:
addRegistryInitializationListener in interface RegistryDefinition
Parameters:
listener - the listener
See Also:
RegistryDefinition.addRegistryInitializationListener(org.apache.hivemind.events.RegistryInitializationListener)

getRegistryInitializationListeners

public java.util.List getRegistryInitializationListeners()
Specified by:
getRegistryInitializationListeners in interface RegistryDefinition
Returns:
a collection of all registered RegistryInitializationListeners
See Also:
RegistryDefinition.getRegistryInitializationListeners()

getModules

public java.util.Collection getModules()
Specified by:
getModules in interface RegistryDefinition
Returns:
a collection of all added modules
See Also:
RegistryDefinition.getModules()

getModule

public ModuleDefinition getModule(java.lang.String id)
Description copied from interface: RegistryDefinition
Returns a module that is identified by its module id.

Specified by:
getModule in interface RegistryDefinition
Parameters:
id - the module id
Returns:
the module
See Also:
RegistryDefinition.getModule(java.lang.String)

getServicePoint

public ServicePointDefinition getServicePoint(java.lang.String qualifiedServicePointId)
Description copied from interface: RegistryDefinition
Returns a service point that is identified by its id.

Specified by:
getServicePoint in interface RegistryDefinition
Parameters:
qualifiedServicePointId - the fully qualified service point id
Returns:
the service point definition
See Also:
RegistryDefinition.getServicePoint(java.lang.String)

getConfigurationPoint

public ConfigurationPointDefinition getConfigurationPoint(java.lang.String qualifiedConfigurationPointId)
Description copied from interface: RegistryDefinition
Returns a configuration point that is identified by its id.

Specified by:
getConfigurationPoint in interface RegistryDefinition
Parameters:
qualifiedConfigurationPointId - the fully qualified configuration point id
Returns:
the configuration point definition
See Also:
RegistryDefinition.getConfigurationPoint(java.lang.String)


Copyright © 2003-2007 Apache Software Foundation. All Rights Reserved.