Class ConfigRepositoryImpl
- java.lang.Object
-
- org.apache.karaf.config.core.impl.ConfigRepositoryImpl
-
- All Implemented Interfaces:
ConfigRepository
public class ConfigRepositoryImpl extends Object implements ConfigRepository
-
-
Constructor Summary
Constructors Constructor Description ConfigRepositoryImpl(org.osgi.service.cm.ConfigurationAdmin configAdmin)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description StringcreateFactoryConfiguration(String factoryPid, String alias, Map<String,Object> properties)StringcreateFactoryConfiguration(String factoryPid, String alias, Map<String,Object> properties, String suffix)StringcreateFactoryConfiguration(String factoryPid, Map<String,Object> properties)StringcreateFactoryConfiguration(String factoryPid, Map<String,Object> properties, String suffix)voiddelete(String pid)booleanexists(String pid)org.apache.felix.utils.properties.TypedPropertiesgetConfig(String pid)org.osgi.service.cm.ConfigurationAdmingetConfigAdmin()voidupdate(String pid, Map<String,Object> properties)voidupdate(String pid, Map<String,Object> properties, String suffix)
-
-
-
Method Detail
-
update
public void update(String pid, Map<String,Object> properties) throws IOException
- Specified by:
updatein interfaceConfigRepository- Throws:
IOException
-
update
public void update(String pid, Map<String,Object> properties, String suffix) throws IOException
- Specified by:
updatein interfaceConfigRepository- Throws:
IOException
-
delete
public void delete(String pid) throws Exception
- Specified by:
deletein interfaceConfigRepository- Throws:
Exception
-
exists
public boolean exists(String pid) throws Exception
- Specified by:
existsin interfaceConfigRepository- Throws:
Exception
-
getConfig
public org.apache.felix.utils.properties.TypedProperties getConfig(String pid) throws IOException, org.osgi.framework.InvalidSyntaxException
- Specified by:
getConfigin interfaceConfigRepository- Throws:
IOExceptionorg.osgi.framework.InvalidSyntaxException
-
createFactoryConfiguration
public String createFactoryConfiguration(String factoryPid, Map<String,Object> properties) throws IOException
- Specified by:
createFactoryConfigurationin interfaceConfigRepository- Throws:
IOException
-
createFactoryConfiguration
public String createFactoryConfiguration(String factoryPid, Map<String,Object> properties, String suffix) throws IOException
- Specified by:
createFactoryConfigurationin interfaceConfigRepository- Throws:
IOException
-
createFactoryConfiguration
public String createFactoryConfiguration(String factoryPid, String alias, Map<String,Object> properties) throws IOException
- Specified by:
createFactoryConfigurationin interfaceConfigRepository- Throws:
IOException
-
createFactoryConfiguration
public String createFactoryConfiguration(String factoryPid, String alias, Map<String,Object> properties, String suffix) throws IOException
- Specified by:
createFactoryConfigurationin interfaceConfigRepository- Throws:
IOException
-
getConfigAdmin
public org.osgi.service.cm.ConfigurationAdmin getConfigAdmin()
- Specified by:
getConfigAdminin interfaceConfigRepository
-
-