Class AbstractWritableJaxbConfigDao<K,​V>

  • All Implemented Interfaces:
    org.springframework.beans.factory.InitializingBean
    Direct Known Subclasses:
    WmiPeerFactory

    public abstract class AbstractWritableJaxbConfigDao<K,​V>
    extends AbstractJaxbConfigDao<K,​V>
    Represents a writable AbstractJaxbConfigDao
    Author:
    brozow, djgregor
    • Constructor Detail

      • AbstractWritableJaxbConfigDao

        public AbstractWritableJaxbConfigDao​(java.lang.Class<K> entityClass,
                                             java.lang.String description)
    • Method Detail

      • getReadLock

        public java.util.concurrent.locks.Lock getReadLock()
      • getWriteLock

        public java.util.concurrent.locks.Lock getWriteLock()
      • getObject

        protected V getObject()

        getConfig

        Returns:
        Returns the config.
      • saveCurrent

        public void saveCurrent()
                         throws java.io.IOException
        Saves the current in-memory configuration to disk and reloads
        Throws:
        java.io.IOException - if any.
      • update

        public void update()

        update

        Throws:
        java.io.IOException - if any.