org.eclipse.corona.container.config
Class ConfigurationManager

java.lang.Object
  extended by org.eclipse.corona.container.config.ConfigurationManager
All Implemented Interfaces:
IConfigurationManager

public class ConfigurationManager
extends java.lang.Object
implements IConfigurationManager

Implementation of IConfigurationManager interface.

Author:
cwpl-pjaworow
See Also:
IConfigurationManager

Constructor Summary
ConfigurationManager()
           
 
Method Summary
 void addPropertyChangeListener(java.beans.PropertyChangeListener l)
          Adds a configuration listener to configuration manager object.
 IConfigurationFactory getCurrentConfigurationFactory()
          Method retrieves current configuration factory object.
 void removePropertyChangeListener(java.beans.PropertyChangeListener l)
          Removes configuration listeners from listeners list.
 IConfigurationFactory updateConfigurationFactory(java.lang.String location)
          Method creates new IConfigurationFactory by given location string.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ConfigurationManager

public ConfigurationManager()
Method Detail

addPropertyChangeListener

public void addPropertyChangeListener(java.beans.PropertyChangeListener l)
Adds a configuration listener to configuration manager object. Listeres will be informed of configuration factory update.

Specified by:
addPropertyChangeListener in interface IConfigurationManager
Parameters:
l - Configuration store change listener.

removePropertyChangeListener

public void removePropertyChangeListener(java.beans.PropertyChangeListener l)
Removes configuration listeners from listeners list.

Specified by:
removePropertyChangeListener in interface IConfigurationManager
Parameters:
l - Configuration store change listener.

updateConfigurationFactory

public IConfigurationFactory updateConfigurationFactory(java.lang.String location)
Method creates new IConfigurationFactory by given location string. Method also informs registered listeners that configuration was changed.

Specified by:
updateConfigurationFactory in interface IConfigurationManager
Parameters:
location - new configuration location.
Returns:
newly created configuration factory object.

getCurrentConfigurationFactory

public IConfigurationFactory getCurrentConfigurationFactory()
Method retrieves current configuration factory object.

Specified by:
getCurrentConfigurationFactory in interface IConfigurationManager
Returns:
Currelty used configuration factory object.

Copyright 2006 IBM Corporation and others.
All Rights Reserved.