org.apache.ivy.plugins.resolver
Interface DependencyResolver

All Known Implementing Classes:
AbstractResolver, AbstractResourceResolver, AbstractSshBasedResolver, BasicResolver, CacheResolver, ChainResolver, DualResolver, FileSystemResolver, IBiblioResolver, IvyRepResolver, RepositoryResolver, SFTPResolver, SshResolver, URLResolver, VfsResolver, VsftpResolver

public interface DependencyResolver

Author:
x.hanin

Method Summary
 DownloadReport download(Artifact[] artifacts, DownloadOptions options)
           
 void dumpSettings()
           
 boolean exists(Artifact artifact)
           
 ResolvedModuleRevision getDependency(DependencyDescriptor dd, ResolveData data)
          Resolve a module by id, getting its module descriptor and resolving the revision if it's a latest one (i.e. a revision uniquely identifying the revision of a module in the current environment - If this revision is not able to identify uniquelely the revision of the module outside of the current environment, then the resolved revision must begin by ##)
 java.lang.String getName()
           
 ModuleEntry[] listModules(OrganisationEntry org)
           
 OrganisationEntry[] listOrganisations()
           
 RevisionEntry[] listRevisions(ModuleEntry module)
           
 java.lang.String[] listTokenValues(java.lang.String token, java.util.Map otherTokenValues)
          List all the values the given token can take if other tokens are set as described in the otherTokenValues map.
 void publish(Artifact artifact, java.io.File src, boolean overwrite)
           
 void reportFailure()
          Reports last resolve failure as Messages
 void reportFailure(Artifact art)
          Reports last artifact download failure as Messages
 void setName(java.lang.String name)
          Should only be used by configurator
 

Method Detail

getName

java.lang.String getName()

setName

void setName(java.lang.String name)
Should only be used by configurator

Parameters:
name - the new name of the resolver

getDependency

ResolvedModuleRevision getDependency(DependencyDescriptor dd,
                                     ResolveData data)
                                     throws java.text.ParseException
Resolve a module by id, getting its module descriptor and resolving the revision if it's a latest one (i.e. a revision uniquely identifying the revision of a module in the current environment - If this revision is not able to identify uniquelely the revision of the module outside of the current environment, then the resolved revision must begin by ##)

Throws:
java.text.ParseException

download

DownloadReport download(Artifact[] artifacts,
                        DownloadOptions options)

exists

boolean exists(Artifact artifact)

publish

void publish(Artifact artifact,
             java.io.File src,
             boolean overwrite)
             throws java.io.IOException
Throws:
java.io.IOException

reportFailure

void reportFailure()
Reports last resolve failure as Messages


reportFailure

void reportFailure(Artifact art)
Reports last artifact download failure as Messages

Parameters:
art -

listTokenValues

java.lang.String[] listTokenValues(java.lang.String token,
                                   java.util.Map otherTokenValues)
List all the values the given token can take if other tokens are set as described in the otherTokenValues map. For instance, if token = "revision" and the map contains "organisation"->"foo" "module"->"bar" The results will be the list of revisions of the module bar from the org foo.


listOrganisations

OrganisationEntry[] listOrganisations()

listModules

ModuleEntry[] listModules(OrganisationEntry org)

listRevisions

RevisionEntry[] listRevisions(ModuleEntry module)

dumpSettings

void dumpSettings()