org.opennms.netmgt.dao.castor
Class AbstractCastorConfigDao<K,V>
java.lang.Object
org.opennms.netmgt.dao.castor.AbstractCastorConfigDao<K,V>
- Type Parameters:
K - Castor classV - Configuration object that is stored in memory (might be the same
as the Castor class or could be a different class)
- All Implemented Interfaces:
- org.springframework.beans.factory.InitializingBean
- Direct Known Subclasses:
- DefaultStatisticsDaemonConfigDao, DefaultSurveillanceViewConfigDao
public abstract class AbstractCastorConfigDao<K,V>
- extends java.lang.Object
- implements org.springframework.beans.factory.InitializingBean
- Author:
- DJ Gregor
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
AbstractCastorConfigDao
public AbstractCastorConfigDao(java.lang.Class<K> entityClass)
translateConfig
public abstract V translateConfig(K castorConfig)
log
protected org.apache.log4j.Category log()
loadConfig
protected V loadConfig(org.springframework.core.io.Resource resource)
afterPropertiesSet
public void afterPropertiesSet()
- Specified by:
afterPropertiesSet in interface org.springframework.beans.factory.InitializingBean
getConfigResource
public org.springframework.core.io.Resource getConfigResource()
setConfigResource
public void setConfigResource(org.springframework.core.io.Resource configResource)
getContainer
protected FileReloadContainer<V> getContainer()
Copyright © 2007. All Rights Reserved.