KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > codehaus > loom > components > util > monitor > DirectoryChangeListener


1 /*
2  * Copyright (C) The Loom Group. All rights reserved.
3  *
4  * This software is published under the terms of the Loom
5  * Software License version 1.1, a copy of which has been included
6  * with this distribution in the LICENSE.txt file.
7  */

8 package org.codehaus.loom.components.util.monitor;
9
10 import java.util.Set JavaDoc;
11
12 /**
13  * Interface implemented by classes that want to recieve
14  * notifications about changes of a directory's content.
15  *
16  * @author Johan Sjoberg
17  * @version $Revision: 1.2 $
18  */

19 public interface DirectoryChangeListener
20 {
21     /** Addition of files */
22     public static final int ADDITION = 1;
23
24     /** Removal of files */
25     public static final int REMOVAL = 2;
26
27     /** Modification of files */
28     public static final int MODIFICATION = 3;
29
30     /**
31      * Indication that some file or files have been changed.
32      *
33      * @param type Type of change to the directory
34      * @param fileSet a Set of files
35      */

36     public void directoryChange( int type, Set JavaDoc fileSet );
37
38     /**
39      * Indication that the scanner was unable to view the contents of the directory
40      */

41     void unableToListContents();
42 }
Popular Tags