A listener class implementing an auto save mechanism for file-based configurations.
Instances of this class are used by {@link FileBasedConfigurationBuilder} tosave their managed configuration instances when they are changed. Objects are registered at {@code Configuration} objects as event listeners and thus cantrigger save operations whenever a change event is received.
There is one complication however: Some configuration implementations fire change events during a load operation. Such events must be ignored to prevent corruption of the source file. This is achieved by monitoring the associated {@code FileHandler}: during load operations no auto-save is performed.
@version $Id: AutoSaveListener.java 1624601 2014-09-12 18:04:36Z oheger $ @since 2.0
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|