Package org.opennms.core.xml
Class AbstractWritableJaxbConfigDao<K,V>
- java.lang.Object
-
- org.opennms.core.xml.AbstractJaxbConfigDao<K,V>
-
- org.opennms.core.xml.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
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class org.opennms.core.xml.AbstractJaxbConfigDao
AbstractJaxbConfigDao.JaxbReloadCallback
-
-
Constructor Summary
Constructors Constructor Description AbstractWritableJaxbConfigDao(Class<K> entityClass, String description)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected VgetObject()getConfigLockgetReadLock()LockgetWriteLock()voidsaveCurrent()Saves the current in-memory configuration to disk and reloadsvoidupdate()update-
Methods inherited from class org.opennms.core.xml.AbstractJaxbConfigDao
addOnReloadedCallback, afterPropertiesSet, getConfigResource, getContainer, getDescription, getReloadCheckInterval, loadConfig, setConfigResource, setReloadCheckInterval, translateConfig
-
-
-
-
Method Detail
-
getReadLock
public Lock getReadLock()
-
getWriteLock
public Lock getWriteLock()
-
getObject
protected V getObject()
getConfig
- Returns:
- Returns the config.
-
saveCurrent
public void saveCurrent() throws IOExceptionSaves the current in-memory configuration to disk and reloads- Throws:
IOException- if any.
-
update
public void update()
update
- Throws:
IOException- if any.
-
-