KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > com > inversoft > savant > DependencyListener


1 /*
2  * Copyright (c) 2003-2004, Inversoft, All Rights Reserved
3  *
4  * This software is distribuable under the GNU Lesser General Public License.
5  * For more information visit gnu.org.
6  */

7 package com.inversoft.savant;
8
9
10 import java.io.File JavaDoc;
11
12
13 /**
14  * <p>
15  * This interface is a listener that is notified when the
16  * {@link DependencyMediator} encounters and handles
17  * artifacts. If the artifact is found, that the method on
18  * this interface is called.
19  * </p>
20  *
21  * @author Brian Pontarelli
22  */

23 public interface DependencyListener {
24
25     /**
26      * Handle when a local project is built by the mediator.
27      *
28      * @param project The local project built
29      */

30     void projectBuilt(LocalProject project);
31
32     /**
33      * Handle when an artifact is found by the mediator.
34      *
35      * @param file The file that references the artifact
36      * @param artifact The artifact found
37      * @param group The ArtifactGroupType the artifact belongs (if any)
38      */

39     void artifactFound(File JavaDoc file, Artifact artifact, ArtifactGroup group);
40 }
41
Popular Tags