Class CmPersistenceManager
- java.lang.Object
-
- org.opennms.features.config.osgi.cm.CmPersistenceManager
-
- All Implemented Interfaces:
org.apache.felix.cm.PersistenceManager
public class CmPersistenceManager extends Object implements org.apache.felix.cm.PersistenceManager
Our own implementation of a PersistenceManager, using the CM system instead of files. It is responsible for providing configurations to Osgi.
-
-
Field Summary
Fields Modifier and Type Field Description static Set<String>
OSGI_PROPERTIES
Properties that are relevant for the inner workings of osgi but shouldn't be exposed to cm.
-
Constructor Summary
Constructors Constructor Description CmPersistenceManager(ConfigurationManagerService configService)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description void
delete(String pid)
static boolean
equalsWithoutOsgiProperties(Dictionary<String,Object> a, Dictionary<String,Object> b)
boolean
exists(String pid)
Enumeration
getDictionaries()
Dictionary
load(String pid)
void
store(String osgiPid, Dictionary props)
-
-
-
Constructor Detail
-
CmPersistenceManager
public CmPersistenceManager(ConfigurationManagerService configService)
-
-
Method Detail
-
exists
public boolean exists(String pid)
- Specified by:
exists
in interfaceorg.apache.felix.cm.PersistenceManager
-
getDictionaries
public Enumeration getDictionaries()
- Specified by:
getDictionaries
in interfaceorg.apache.felix.cm.PersistenceManager
-
load
public Dictionary load(String pid)
- Specified by:
load
in interfaceorg.apache.felix.cm.PersistenceManager
-
store
public void store(String osgiPid, Dictionary props) throws IOException
- Specified by:
store
in interfaceorg.apache.felix.cm.PersistenceManager
- Throws:
IOException
-
delete
public void delete(String pid) throws IOException
- Specified by:
delete
in interfaceorg.apache.felix.cm.PersistenceManager
- Throws:
IOException
-
equalsWithoutOsgiProperties
public static boolean equalsWithoutOsgiProperties(Dictionary<String,Object> a, Dictionary<String,Object> b)
-
-