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​(Class<K> entityClass,
                                             String description)
    • Method Detail

      • getReadLock

        public Lock getReadLock()
      • getWriteLock

        public Lock getWriteLock()
      • getObject

        protected V getObject()

        getConfig

        Returns:
        Returns the config.
      • saveCurrent

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

        public void update()

        update

        Throws:
        IOException - if any.