Class 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 Detail

      • CmPersistenceManagerDelegator

        public CmPersistenceManagerDelegator​(org.osgi.framework.BundleContext context)
    • Method Detail

      • exists

        public boolean exists​(String pid)
        Specified by:
        exists in interface org.apache.felix.cm.PersistenceManager
      • getDictionaries

        public Enumeration getDictionaries()
                                    throws IOException
        Specified by:
        getDictionaries in interface org.apache.felix.cm.PersistenceManager
        Throws:
        IOException
      • delete

        public void delete​(String pid)
                    throws IOException
        Specified by:
        delete in interface org.apache.felix.cm.PersistenceManager
        Throws:
        IOException