org.apache.felix.cm.impl
Class ConfigurationManager

java.lang.Object
  extended by org.apache.felix.cm.impl.ConfigurationManager
All Implemented Interfaces:
java.util.EventListener, org.osgi.framework.BundleActivator, org.osgi.framework.BundleListener

public class ConfigurationManager
extends java.lang.Object
implements org.osgi.framework.BundleActivator, org.osgi.framework.BundleListener

The ConfigurationManager is the central class in this implementation of the Configuration Admin Service Specification. As such it has the following tasks:

The default FilePersistenceManager is configured with a configuration location taken from the felix.cm.dir framework property. If this property is not set the config directory in the current working directory as specified in the user.dir system property is used.

Author:
fmeschbe

Field Summary
static java.lang.String CM_CONFIG_DIR
          The name of the bundle context property defining the location for the configuration files (value is "felix.cm.dir").
 
Constructor Summary
ConfigurationManager()
           
 
Method Summary
 void bundleChanged(org.osgi.framework.BundleEvent event)
           
 void start(org.osgi.framework.BundleContext bundleContext)
           
 void stop(org.osgi.framework.BundleContext bundleContext)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

CM_CONFIG_DIR

public static final java.lang.String CM_CONFIG_DIR
The name of the bundle context property defining the location for the configuration files (value is "felix.cm.dir").

See Also:
start(BundleContext), Constant Field Values
Constructor Detail

ConfigurationManager

public ConfigurationManager()
Method Detail

start

public void start(org.osgi.framework.BundleContext bundleContext)
Specified by:
start in interface org.osgi.framework.BundleActivator

stop

public void stop(org.osgi.framework.BundleContext bundleContext)
Specified by:
stop in interface org.osgi.framework.BundleActivator

bundleChanged

public void bundleChanged(org.osgi.framework.BundleEvent event)
Specified by:
bundleChanged in interface org.osgi.framework.BundleListener