Class FileChangesListenerAdapter

java.lang.Object
com.polarion.platform.service.repository.FileChangesListenerAdapter
All Implemented Interfaces:
IFileChangesListener
Direct Known Subclasses:
ExtendedFileChangesListenerAdapter

public abstract class FileChangesListenerAdapter extends Object implements IFileChangesListener
An abstract adapter class for receiving file(folder) change events. The methods in this class are empty. This class exists as convenience for creating listener objects.

Extend this class to create a file change listener and override the methods for the events of interest. (If you implement the IFileChangesListener interface, you have to define all of the methods in it. This abstract class defines null methods for them all, so you can only have to define methods for events you care about.)

Create a listener object using the extended class and then register it with a repository service using the service's addFileChangesListener method. When a file(folder) is changed, created, moved, copyed or removed the relevant method in the listener object is invoked and the ILocation is passed to it.

Author:
POLARION SOFTWARE