KickJava   Java API By Example, From Geeks To Geeks.

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


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

18
19 import org.apache.maven.artifact.Artifact;
20 import org.apache.maven.artifact.metadata.ArtifactMetadataSource;
21 import org.apache.maven.artifact.repository.ArtifactRepository;
22 import org.apache.maven.artifact.resolver.filter.ArtifactFilter;
23
24 import java.util.List JavaDoc;
25 import java.util.Map JavaDoc;
26 import java.util.Set JavaDoc;
27
28 /**
29  * Artifact collector - takes a set of original artifacts and resolves all of the best versions to use
30  * along with their metadata. No artifacts are downloaded.
31  *
32  * @author <a HREF="mailto:brett@apache.org">Brett Porter</a>
33  * @version $Id: ArtifactCollector.java 279720 2005-09-09 06:49:59Z brett $
34  */

35 public interface ArtifactCollector
36 {
37     ArtifactResolutionResult collect( Set JavaDoc artifacts, Artifact originatingArtifact, ArtifactRepository localRepository,
38                                       List JavaDoc remoteRepositories, ArtifactMetadataSource source, ArtifactFilter filter,
39                                       List JavaDoc listeners )
40         throws ArtifactResolutionException;
41
42     ArtifactResolutionResult collect( Set JavaDoc artifacts, Artifact originatingArtifact, Map JavaDoc managedVersions,
43                                       ArtifactRepository localRepository, List JavaDoc remoteRepositories,
44                                       ArtifactMetadataSource source, ArtifactFilter filter, List JavaDoc listeners )
45         throws ArtifactResolutionException;
46 }
47
Popular Tags