KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > apache > maven > artifact > resolver > ResolutionListener


1 package org.apache.maven.artifact.resolver;
2
3 import org.apache.maven.artifact.Artifact;
4 import org.apache.maven.artifact.versioning.VersionRange;
5
6 /*
7 * Copyright 2001-2005 The Apache Software Foundation.
8 *
9 * Licensed under the Apache License, Version 2.0 (the "License");
10 * you may not use this file except in compliance with the License.
11 * You may obtain a copy of the License at
12 *
13 * http://www.apache.org/licenses/LICENSE-2.0
14 *
15 * Unless required by applicable law or agreed to in writing, software
16 * distributed under the License is distributed on an "AS IS" BASIS,
17 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
18 * See the License for the specific language governing permissions and
19 * limitations under the License.
20 */

21
22 /**
23  * Listens to the resolution process and handles events.
24  *
25  * @author <a HREF="mailto:brett@apache.org">Brett Porter</a>
26  * @version $Id$
27  */

28 public interface ResolutionListener
29 {
30     String JavaDoc ROLE = ResolutionListener.class.getName();
31
32     int TEST_ARTIFACT = 1;
33
34     int PROCESS_CHILDREN = 2;
35
36     int FINISH_PROCESSING_CHILDREN = 3;
37
38     int INCLUDE_ARTIFACT = 4;
39
40     int OMIT_FOR_NEARER = 5;
41
42     int UPDATE_SCOPE = 6;
43
44     int MANAGE_ARTIFACT = 7;
45
46     int OMIT_FOR_CYCLE = 8;
47
48     int UPDATE_SCOPE_CURRENT_POM = 9;
49
50     int SELECT_VERSION_FROM_RANGE = 10;
51
52     int RESTRICT_RANGE = 11;
53
54     void testArtifact( Artifact node );
55
56     void startProcessChildren( Artifact artifact );
57
58     void endProcessChildren( Artifact artifact );
59
60     void includeArtifact( Artifact artifact );
61
62     void omitForNearer( Artifact omitted, Artifact kept );
63
64     void updateScope( Artifact artifact, String JavaDoc scope );
65
66     void manageArtifact( Artifact artifact, Artifact replacement );
67
68     void omitForCycle( Artifact artifact );
69
70     void updateScopeCurrentPom( Artifact artifact, String JavaDoc scope );
71
72     void selectVersionFromRange( Artifact artifact );
73
74     void restrictRange( Artifact artifact, Artifact replacement, VersionRange newRange );
75 }
76
Popular Tags