public class FileSystemSaveableConfigContainer<T> extends Object implements SaveableConfigContainer<T>
AbstractWritableJaxbConfigDao and is subject to the reloading strategy of that class.| Constructor and Description | 
|---|
| FileSystemSaveableConfigContainer(Class<T> clazz,
                                 String configName,
                                 Collection<java.util.function.Consumer<T>> onConfigChangeCallbacks,
                                 File configFile) | 
| Modifier and Type | Method and Description | 
|---|---|
| T | getConfig() | 
| Lock | getReadLock() | 
| Lock | getWriteLock() | 
| void | reload()Instruct the container to reload the in-memory configuration from the backing configuration. | 
| void | saveConfig()Overwrite the backing configuration with the in-memory copy of the configuration. | 
public FileSystemSaveableConfigContainer(Class<T> clazz, String configName, Collection<java.util.function.Consumer<T>> onConfigChangeCallbacks, File configFile)
public void saveConfig()
SaveableConfigContainersaveConfig in interface SaveableConfigContainer<T>public void reload()
ReloadableConfigContainerreload in interface ReloadableConfigContainer<T>public T getConfig()
getConfig in interface ReloadableConfigContainer<T>public Lock getReadLock()
getReadLock in interface SaveableConfigContainer<T>public Lock getWriteLock()
getWriteLock in interface SaveableConfigContainer<T>Copyright © 2021. All rights reserved.