Class FileHandlerListenerAdapter
java.lang.Object
org.apache.commons.configuration2.io.FileHandlerListenerAdapter
- All Implemented Interfaces:
FileHandlerListener
An adapter class simplifying the implementation of custom FileHandlerListener
classes.
This class provides empty dummy implementations for all methods defined by the FileHandlerListener
interface.
Custom listener implementations can extend this adapter class and override only the methods they actually need.
- Since:
- 2.0
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
loaded
(FileHandler handler) Notification that the associated file has been loaded.void
loading
(FileHandler handler) Notification that the associated file is about to be loaded.void
locationChanged
(FileHandler handler) Notification that a property of the monitoredFileHandler
has changed.void
saved
(FileHandler handler) Notification that the associated file has been saved.void
saving
(FileHandler handler) Notification that the associated file is about to be saved.
-
Constructor Details
-
FileHandlerListenerAdapter
public FileHandlerListenerAdapter()
-
-
Method Details
-
loading
Description copied from interface:FileHandlerListener
Notification that the associated file is about to be loaded. This method is called immediately before the load operation.- Specified by:
loading
in interfaceFileHandlerListener
- Parameters:
handler
- the file handler
-
loaded
Description copied from interface:FileHandlerListener
Notification that the associated file has been loaded. This method is called directly after the load operation.- Specified by:
loaded
in interfaceFileHandlerListener
- Parameters:
handler
- the file handler
-
saving
Description copied from interface:FileHandlerListener
Notification that the associated file is about to be saved. This method is called immediately before the save operation.- Specified by:
saving
in interfaceFileHandlerListener
- Parameters:
handler
- the file handler
-
saved
Description copied from interface:FileHandlerListener
Notification that the associated file has been saved. This method is called directly after the save operation.- Specified by:
saved
in interfaceFileHandlerListener
- Parameters:
handler
- the file handler
-
locationChanged
Description copied from interface:FileHandlerListener
Notification that a property of the monitoredFileHandler
has changed.- Specified by:
locationChanged
in interfaceFileHandlerListener
- Parameters:
handler
- the file handler
-