org.apache.felix.cm.impl
Class ConfigurationAdminImpl

java.lang.Object
  extended by org.apache.felix.cm.impl.ConfigurationAdminImpl
All Implemented Interfaces:
ConfigurationAdmin

public class ConfigurationAdminImpl
extends Object
implements ConfigurationAdmin

The ConfigurationAdminImpl is the per-bundle frontend to the configuration manager. Instances of this class are created on-demand for each bundle trying to get hold of the ConfigurationAdmin service.


Field Summary
 
Fields inherited from interface org.osgi.service.cm.ConfigurationAdmin
SERVICE_BUNDLELOCATION, SERVICE_FACTORYPID
 
Method Summary
 Configuration createFactoryConfiguration(String factoryPid)
           
 Configuration createFactoryConfiguration(String factoryPid, String location)
           
 Configuration getConfiguration(String pid)
           
 Configuration getConfiguration(String pid, String location)
           
 Configuration[] listConfigurations(String filter)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

createFactoryConfiguration

public Configuration createFactoryConfiguration(String factoryPid)
                                         throws IOException
Specified by:
createFactoryConfiguration in interface ConfigurationAdmin
Throws:
IOException

createFactoryConfiguration

public Configuration createFactoryConfiguration(String factoryPid,
                                                String location)
                                         throws IOException
Specified by:
createFactoryConfiguration in interface ConfigurationAdmin
Throws:
IOException

getConfiguration

public Configuration getConfiguration(String pid)
                               throws IOException
Specified by:
getConfiguration in interface ConfigurationAdmin
Throws:
IOException

getConfiguration

public Configuration getConfiguration(String pid,
                                      String location)
                               throws IOException
Specified by:
getConfiguration in interface ConfigurationAdmin
Throws:
IOException

listConfigurations

public Configuration[] listConfigurations(String filter)
                                   throws IOException,
                                          InvalidSyntaxException
Specified by:
listConfigurations in interface ConfigurationAdmin
Throws:
IOException
InvalidSyntaxException


Copyright © 2006-2011 Apache Software Foundation. All Rights Reserved.