public abstract class AutoReloadingConfiguration extends Object
Modifier and Type | Field and Description |
---|---|
protected String |
configPath |
Constructor and Description |
---|
AutoReloadingConfiguration() |
Modifier and Type | Method and Description |
---|---|
void |
init()
Initialize the configuration and set up monitoring
|
protected abstract void |
loadConfiguration()
Load the configuration file.
|
void |
setConfigPath(String configPath)
Set the file path for the configuration
|
void |
setMonitorForChanges(boolean monitorForChanges)
Set whether to monitor the configuration file for changes
|
void |
shutdown()
Shut down the change monitoring thread
|
protected String configPath
public AutoReloadingConfiguration()
public void init() throws IOException
IOException
public void shutdown()
protected abstract void loadConfiguration() throws IOException
IOException
- thrown if the configuration cannot be loaded.public void setConfigPath(String configPath)
configPath
- file path for configurationpublic void setMonitorForChanges(boolean monitorForChanges)
monitorForChanges
- flag controlling if to enable configuration monitoringCopyright © 2013–2019 DuraSpace, Inc.. All rights reserved.