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 AbstractCastorConfigDao<K,V> extends Object implements org.springframework.beans.factory.InitializingBean
Abstract AbstractCastorConfigDao class.
Modifier and Type | Class and Description |
---|---|
class |
AbstractCastorConfigDao.CastorReloadCallback |
Constructor and Description |
---|
AbstractCastorConfigDao(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
|
protected FileReloadContainer<V> |
getContainer()
getContainer
|
String |
getDescription()
getDescription
|
Long |
getReloadCheckInterval()
getReloadCheckInterval
|
protected V |
loadConfig(org.springframework.core.io.Resource resource)
loadConfig
|
void |
setConfigResource(org.springframework.core.io.Resource configResource)
setConfigResource
|
void |
setReloadCheckInterval(Long reloadCheckInterval)
setReloadCheckInterval
|
abstract V |
translateConfig(K castorConfig)
translateConfig
|
public abstract V translateConfig(K castorConfig)
translateConfig
castorConfig
- a K 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.protected FileReloadContainer<V> getContainer()
getContainer
FileReloadContainer
object.public Long getReloadCheckInterval()
getReloadCheckInterval
Long
object.public void setReloadCheckInterval(Long reloadCheckInterval)
setReloadCheckInterval
reloadCheckInterval
- a Long
object.Copyright © 2017. All rights reserved.