com.germinus.easyconf
Class FileConfigurationChangedReloadingStrategy
java.lang.Object
org.apache.commons.configuration.reloading.FileChangedReloadingStrategy
com.germinus.easyconf.FileConfigurationChangedReloadingStrategy
- All Implemented Interfaces:
- org.apache.commons.configuration.reloading.ReloadingStrategy
- Direct Known Subclasses:
- FileURLChangedReloadingStrategy
- public class FileConfigurationChangedReloadingStrategy
- extends org.apache.commons.configuration.reloading.FileChangedReloadingStrategy
Reloads the configuration file even if a base path wasn't originally
specified. This happens for example when it has been loaded from
the classpath. It works too for files that are inside JAR files.
Fields inherited from class org.apache.commons.configuration.reloading.FileChangedReloadingStrategy |
configuration, lastChecked, lastModified, refreshDelay |
Method Summary |
protected java.io.File |
getFile()
|
protected java.net.URL |
getSourceURL()
|
protected boolean |
hasChanged()
Check if the configuration has changed since the last time it was loaded. |
void |
setConfiguration(org.apache.commons.configuration.FileConfiguration configuration)
|
protected void |
setSourceURL(java.net.URL url)
|
protected void |
updateLastModified()
Update the last modified time. |
Methods inherited from class org.apache.commons.configuration.reloading.FileChangedReloadingStrategy |
getRefreshDelay, init, reloadingPerformed, reloadingRequired, setRefreshDelay |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
FileConfigurationChangedReloadingStrategy
public FileConfigurationChangedReloadingStrategy()
setConfiguration
public void setConfiguration(org.apache.commons.configuration.FileConfiguration configuration)
setSourceURL
protected void setSourceURL(java.net.URL url)
getSourceURL
protected java.net.URL getSourceURL()
updateLastModified
protected void updateLastModified()
- Update the last modified time.
hasChanged
protected boolean hasChanged()
- Check if the configuration has changed since the last time it was loaded.
getFile
protected java.io.File getFile()
Copyright © 2005 EasyConf team. All Rights Reserved.