Package com.germinus.easyconf
Class ConfigurationObjectCache
java.lang.Object
com.germinus.easyconf.ConfigurationObjectCache
Holds a configuration object and reloads it when necessary
- Version:
- $Revision: 1.4 $
- Author:
- Jorge Ferrer
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate URL
(package private) Object
private String
(package private) ConfigurationLoader
private static final Log
private ComponentProperties
(package private) ReloadingStrategy
(package private) Object
-
Constructor Summary
ConstructorsConstructorDescriptionConfigurationObjectCache
(Object confObj, URL confFileUrl, ComponentProperties properties, String confName) -
Method Summary
Modifier and TypeMethodDescriptionprivate ReloadingStrategy
private void
reload()
void
setReloadingStrategy
(ReloadingStrategy strategy)
-
Field Details
-
configurationObject
Object configurationObject -
reloadingStrategy
ReloadingStrategy reloadingStrategy -
reloadLock
Object reloadLock -
loader
ConfigurationLoader loader -
log
private static final Log log -
confFileUrl
-
properties
-
confName
-
-
Constructor Details
-
ConfigurationObjectCache
public ConfigurationObjectCache(Object confObj, URL confFileUrl, ComponentProperties properties, String confName)
-
-
Method Details
-
getConfigurationObject
-
getConfName
-
reload
private void reload() -
getReloadingStrategy
private ReloadingStrategy getReloadingStrategy() -
setReloadingStrategy
public void setReloadingStrategy(ReloadingStrategy strategy)
-