Package org.apache.commons.vfs2.events
Class AbstractFileChangeEvent
- java.lang.Object
-
- org.apache.commons.vfs2.FileChangeEvent
-
- org.apache.commons.vfs2.events.AbstractFileChangeEvent
-
- Direct Known Subclasses:
ChangedEvent
,CreateEvent
,DeleteEvent
public abstract class AbstractFileChangeEvent extends FileChangeEvent
A change event that knows how to notify a listener.
-
-
Constructor Summary
Constructors Constructor Description AbstractFileChangeEvent(FileObject fileObject)
Constructs a new instance for subclasses.
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description abstract void
notify(FileListener fileListener)
Notifies the given file listener of this event.-
Methods inherited from class org.apache.commons.vfs2.FileChangeEvent
getFile, getFileObject
-
-
-
-
Constructor Detail
-
AbstractFileChangeEvent
public AbstractFileChangeEvent(FileObject fileObject)
Constructs a new instance for subclasses.- Parameters:
fileObject
- the file object.
-
-
Method Detail
-
notify
public abstract void notify(FileListener fileListener) throws java.lang.Exception
Notifies the given file listener of this event.- Parameters:
fileListener
- The file listener to notify.- Throws:
java.lang.Exception
- Anything can happen.
-
-