org.apache.maven.artifact.resolver
Class DefaultArtifactCollector

java.lang.Object
  extended byorg.apache.maven.artifact.resolver.DefaultArtifactCollector
All Implemented Interfaces:
ArtifactCollector

public class DefaultArtifactCollector
extends Object
implements ArtifactCollector

Default implementation of the artifact collector.

Version:
$Id: DefaultArtifactCollector.java 379648 2006-02-22 01:55:47Z brett $
Author:
Brett Porter

Constructor Summary
DefaultArtifactCollector()
           
 
Method Summary
(package private)  boolean checkScopeUpdate(ResolutionNode farthest, ResolutionNode nearest, List listeners)
          Check if the scope needs to be updated.
 ArtifactResolutionResult collect(Set artifacts, Artifact originatingArtifact, ArtifactRepository localRepository, List remoteRepositories, ArtifactMetadataSource source, ArtifactFilter filter, List listeners)
           
 ArtifactResolutionResult collect(Set artifacts, Artifact originatingArtifact, Map managedVersions, ArtifactRepository localRepository, List remoteRepositories, ArtifactMetadataSource source, ArtifactFilter filter, List listeners)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DefaultArtifactCollector

public DefaultArtifactCollector()
Method Detail

collect

public ArtifactResolutionResult collect(Set artifacts,
                                        Artifact originatingArtifact,
                                        ArtifactRepository localRepository,
                                        List remoteRepositories,
                                        ArtifactMetadataSource source,
                                        ArtifactFilter filter,
                                        List listeners)
                                 throws ArtifactResolutionException
Specified by:
collect in interface ArtifactCollector
Throws:
ArtifactResolutionException

collect

public ArtifactResolutionResult collect(Set artifacts,
                                        Artifact originatingArtifact,
                                        Map managedVersions,
                                        ArtifactRepository localRepository,
                                        List remoteRepositories,
                                        ArtifactMetadataSource source,
                                        ArtifactFilter filter,
                                        List listeners)
                                 throws ArtifactResolutionException
Specified by:
collect in interface ArtifactCollector
Throws:
ArtifactResolutionException

checkScopeUpdate

boolean checkScopeUpdate(ResolutionNode farthest,
                         ResolutionNode nearest,
                         List listeners)
Check if the scope needs to be updated. More info.

Parameters:
farthest - farthest resolution node
nearest - nearest resolution node
listeners -


Copyright 2001-2001-2006 Apache Software Foundation. All Rights Reserved.