org.opennms.netmgt.dao.castor
Class AbstractCastorConfigDao<K,V>

java.lang.Object
  extended by org.opennms.netmgt.dao.castor.AbstractCastorConfigDao<K,V>
Type Parameters:
K - Castor class
V - 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

Nested Class Summary
 class AbstractCastorConfigDao.CastorReloadCallback
           
 
Constructor Summary
AbstractCastorConfigDao(java.lang.Class<K> entityClass)
           
 
Method Summary
 void afterPropertiesSet()
           
 org.springframework.core.io.Resource getConfigResource()
           
protected  FileReloadContainer<V> getContainer()
           
protected  V loadConfig(org.springframework.core.io.Resource resource)
           
protected  org.apache.log4j.Category log()
           
 void setConfigResource(org.springframework.core.io.Resource configResource)
           
abstract  V translateConfig(K castorConfig)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AbstractCastorConfigDao

public AbstractCastorConfigDao(java.lang.Class<K> entityClass)
Method Detail

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.