Class FileHandlerListenerAdapter
- java.lang.Object
-
- org.apache.commons.configuration2.io.FileHandlerListenerAdapter
-
- All Implemented Interfaces:
FileHandlerListener
public class FileHandlerListenerAdapter extends Object implements FileHandlerListener
An adapter class simplifying the implementation of custom
FileHandlerListenerclasses.This class provides empty dummy implementations for all methods defined by the
FileHandlerListenerinterface. Custom listener implementations can extend this adapter class and override only the methods they actually need.- Since:
- 2.0
-
-
Constructor Summary
Constructors Constructor Description FileHandlerListenerAdapter()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidloaded(FileHandler handler)Notification that the associated file has been loaded.voidloading(FileHandler handler)Notification that the associated file is about to be loaded.voidlocationChanged(FileHandler handler)Notification that a property of the monitoredFileHandlerhas changed.voidsaved(FileHandler handler)Notification that the associated file has been saved.voidsaving(FileHandler handler)Notification that the associated file is about to be saved.
-
-
-
Constructor Detail
-
FileHandlerListenerAdapter
public FileHandlerListenerAdapter()
-
-
Method Detail
-
loading
public void loading(FileHandler handler)
Description copied from interface:FileHandlerListenerNotification that the associated file is about to be loaded. This method is called immediately before the load operation.- Specified by:
loadingin interfaceFileHandlerListener- Parameters:
handler- the file handler
-
loaded
public void loaded(FileHandler handler)
Description copied from interface:FileHandlerListenerNotification that the associated file has been loaded. This method is called directly after the load operation.- Specified by:
loadedin interfaceFileHandlerListener- Parameters:
handler- the file handler
-
saving
public void saving(FileHandler handler)
Description copied from interface:FileHandlerListenerNotification that the associated file is about to be saved. This method is called immediately before the save operation.- Specified by:
savingin interfaceFileHandlerListener- Parameters:
handler- the file handler
-
saved
public void saved(FileHandler handler)
Description copied from interface:FileHandlerListenerNotification that the associated file has been saved. This method is called directly after the save operation.- Specified by:
savedin interfaceFileHandlerListener- Parameters:
handler- the file handler
-
locationChanged
public void locationChanged(FileHandler handler)
Description copied from interface:FileHandlerListenerNotification that a property of the monitoredFileHandlerhas changed.- Specified by:
locationChangedin interfaceFileHandlerListener- Parameters:
handler- the file handler
-
-