Package com.germinus.easyconf
Class FileConfigurationChangedReloadingStrategy
- java.lang.Object
-
- FileChangedReloadingStrategy
-
- com.germinus.easyconf.FileConfigurationChangedReloadingStrategy
-
- Direct Known Subclasses:
FileURLChangedReloadingStrategy
public class FileConfigurationChangedReloadingStrategy extends FileChangedReloadingStrategyReloads 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.
-
-
Constructor Summary
Constructors Constructor Description FileConfigurationChangedReloadingStrategy()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected java.io.FilegetFile()protected java.net.URLgetSourceURL()protected booleanhasChanged()Check if the configuration has changed since the last time it was loaded.voidsetConfiguration(FileConfiguration configuration)protected voidsetSourceURL(java.net.URL url)protected voidupdateLastModified()Update the last modified time.
-
-
-
Method Detail
-
setConfiguration
public void setConfiguration(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()
-
-