|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface IConfigurationManager
Configuration manager objects, manages corona's coniguration factory objects.
This iterface is "Factory" class for IConfigurationFactory
objects.
The main method
updateConfigurationFactory(String)
creates new
IConfigurationFactory object depeds on given location string, if such object
cannot be created than NullConfigurationFactory is returned.
Manager is registered as service, and it can be retrieved in following way:
ServiceReference sr = Activator.getBundleContext().getServiceReference(IConfigurationManager.class.getName());
if (sr != null) {
Object o = Activator.getBundleContext().getService(sr);
if ( o instanceof IConfigurationManager) {
IConfigurationManager cf = (IConfigurationManager) o;
...
}
}
...
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. |
Method Detail |
---|
IConfigurationFactory updateConfigurationFactory(java.lang.String location)
location
- new configuration location.
void addPropertyChangeListener(java.beans.PropertyChangeListener l)
l
- Configuration store change listener.void removePropertyChangeListener(java.beans.PropertyChangeListener l)
l
- Configuration store change listener.IConfigurationFactory getCurrentConfigurationFactory()
|
Copyright 2006 IBM Corporation and others. All Rights Reserved. |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |