K
- Castor classV
- Configuration object that is stored in memory (might be the same
as the Castor class or could be a different class)public abstract class AbstractJaxbConfigDao<K,V> extends Object implements org.springframework.beans.factory.InitializingBean
Abstract AbstractCastorConfigDao class.
Modifier and Type | Class and Description |
---|---|
class |
AbstractJaxbConfigDao.JaxbReloadCallback |
Constructor and Description |
---|
AbstractJaxbConfigDao(Class<K> entityClass,
String description)
Constructor for AbstractCastorConfigDao.
|
Modifier and Type | Method and Description |
---|---|
void |
afterPropertiesSet()
afterPropertiesSet
|
protected String |
createLoadedLogMessage(V translatedConfig,
long diffTime)
createLoadedLogMessage
|
org.springframework.core.io.Resource |
getConfigResource()
getConfigResource
|
FileReloadContainer<V> |
getContainer()
getContainer
|
String |
getDescription()
getDescription
|
Long |
getReloadCheckInterval()
getReloadCheckInterval
|
protected V |
loadConfig(org.springframework.core.io.Resource resource)
loadConfig
|
protected ThreadCategory |
log()
log
|
void |
setConfigResource(org.springframework.core.io.Resource configResource)
setConfigResource
|
void |
setReloadCheckInterval(Long reloadCheckInterval)
setReloadCheckInterval
|
protected abstract V |
translateConfig(K castorConfig)
translateConfig
|
protected abstract V translateConfig(K castorConfig)
translateConfig
castorConfig
- a K object.protected ThreadCategory log()
log
ThreadCategory
object.protected V loadConfig(org.springframework.core.io.Resource resource)
loadConfig
resource
- a Resource
object.protected String createLoadedLogMessage(V translatedConfig, long diffTime)
createLoadedLogMessage
translatedConfig
- a V object.diffTime
- a long.String
object.public void afterPropertiesSet()
afterPropertiesSet
afterPropertiesSet
in interface org.springframework.beans.factory.InitializingBean
public org.springframework.core.io.Resource getConfigResource()
getConfigResource
Resource
object.public void setConfigResource(org.springframework.core.io.Resource configResource)
setConfigResource
configResource
- a Resource
object.public FileReloadContainer<V> getContainer()
getContainer
org.opennms.netmgt.dao.support.FileReloadContainer
object.public Long getReloadCheckInterval()
getReloadCheckInterval
Long
object.public void setReloadCheckInterval(Long reloadCheckInterval)
setReloadCheckInterval
reloadCheckInterval
- a Long
object.Copyright © 2015. All Rights Reserved.