org.opennms.netmgt.dao.jaxb
Class AbstractJaxbConfigDao<K,V>

java.lang.Object
  extended by org.opennms.netmgt.dao.jaxb.AbstractJaxbConfigDao<K,V>
All Implemented Interfaces:
org.springframework.beans.factory.InitializingBean
Direct Known Subclasses:
JdbcDataCollectionConfigDaoJaxb

public abstract class AbstractJaxbConfigDao<K,V>
extends Object
implements org.springframework.beans.factory.InitializingBean


Nested Class Summary
 class AbstractJaxbConfigDao.JaxbReloadCallback
           
 
Constructor Summary
AbstractJaxbConfigDao(Class<K> entityClass, String description)
           
 
Method Summary
 void afterPropertiesSet()
           
protected  String createLoadedLogMessage(V translatedConfig, long diffTime)
           
 org.springframework.core.io.Resource getConfigResource()
           
protected  FileReloadContainer<V> getContainer()
           
 String getDescription()
           
protected  V loadConfig(org.springframework.core.io.Resource resource)
           
protected  ThreadCategory log()
           
 void setConfigResource(org.springframework.core.io.Resource configResource)
           
abstract  V translateConfig(K jaxbConfig)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AbstractJaxbConfigDao

public AbstractJaxbConfigDao(Class<K> entityClass,
                             String description)
Method Detail

translateConfig

public abstract V translateConfig(K jaxbConfig)

getContainer

protected FileReloadContainer<V> getContainer()

log

protected ThreadCategory log()

loadConfig

protected V loadConfig(org.springframework.core.io.Resource resource)

createLoadedLogMessage

protected String createLoadedLogMessage(V translatedConfig,
                                        long diffTime)

getConfigResource

public org.springframework.core.io.Resource getConfigResource()

setConfigResource

public void setConfigResource(org.springframework.core.io.Resource configResource)

getDescription

public String getDescription()

afterPropertiesSet

public void afterPropertiesSet()
                        throws Exception
Specified by:
afterPropertiesSet in interface org.springframework.beans.factory.InitializingBean
Throws:
Exception


Copyright © 2011. All Rights Reserved.