Class CmPersistenceManagerDelegator
- java.lang.Object
-
- org.opennms.features.config.osgi.del.CmPersistenceManagerDelegator
-
- All Implemented Interfaces:
org.apache.felix.cm.NotCachablePersistenceManager
,org.apache.felix.cm.PersistenceManager
public class CmPersistenceManagerDelegator extends Object implements org.apache.felix.cm.NotCachablePersistenceManager
Our own implementation of a PersistenceManager. It delegates to ConfigurationManagerService for OpenNMS bundles It delegates to FilePersistenceManager all other bundles It does lazy loading for the delegates, loading is deferred until they are actually needed. Must be activated in custom.properties: felix.cm.pm=org.opennms.config.osgi.del.CmPersistenceManagerDelegator
-
-
Constructor Summary
Constructors Constructor Description CmPersistenceManagerDelegator(org.osgi.framework.BundleContext context)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
delete(String pid)
boolean
exists(String pid)
Enumeration
getDictionaries()
Dictionary
load(String pid)
void
store(String pid, Dictionary props)
-
-
-
Method Detail
-
exists
public boolean exists(String pid)
- Specified by:
exists
in interfaceorg.apache.felix.cm.PersistenceManager
-
getDictionaries
public Enumeration getDictionaries() throws IOException
- Specified by:
getDictionaries
in interfaceorg.apache.felix.cm.PersistenceManager
- Throws:
IOException
-
load
public Dictionary load(String pid) throws IOException
- Specified by:
load
in interfaceorg.apache.felix.cm.PersistenceManager
- Throws:
IOException
-
store
public void store(String pid, 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
-
-