Class WrappedPersistenceManager

java.lang.Object
org.codice.felix.cm.file.WrappedPersistenceManager
All Implemented Interfaces:
AutoCloseable, org.apache.felix.cm.PersistenceManager
Direct Known Subclasses:
DelegatingPersistenceManager, EncryptingPersistenceManager

public class WrappedPersistenceManager extends Object implements org.apache.felix.cm.PersistenceManager, AutoCloseable
Basic wrapper class for enhancing functionality of any persistence manager with additional layers of processing.

See FELIX-4005 invalid input: '&' FELIX-4556. This class cannot utilize Java 8 language constructs due to maven bundle plugin 2.3.7

  • Method Details

    • getInnerPersistenceManager

      protected org.apache.felix.cm.PersistenceManager getInnerPersistenceManager()
    • close

      public void close() throws Exception
      Specified by:
      close in interface AutoCloseable
      Throws:
      Exception
    • exists

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

      public Dictionary load(String pid) throws IOException
      Specified by:
      load in interface org.apache.felix.cm.PersistenceManager
      Throws:
      IOException
    • getDictionaries

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

      public void store(String pid, Dictionary properties) throws IOException
      Specified by:
      store 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