fr.jayasoft.ivy
Interface DependencyResolver


public interface DependencyResolver

Author:
x.hanin

Method Summary
 fr.jayasoft.ivy.report.DownloadReport download(Artifact[] artifacts, Ivy ivy, java.io.File cache)
           
 void dumpConfig()
           
 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.
 java.lang.String getName()
           
 fr.jayasoft.ivy.resolver.ModuleEntry[] listModules(fr.jayasoft.ivy.resolver.OrganisationEntry org)
           
 fr.jayasoft.ivy.resolver.OrganisationEntry[] listOrganisations()
           
 fr.jayasoft.ivy.resolver.RevisionEntry[] listRevisions(fr.jayasoft.ivy.resolver.ModuleEntry module)
           
 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

public java.lang.String getName()

setName

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

Parameters:
name - the new name of the resolver

getDependency

public 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

public fr.jayasoft.ivy.report.DownloadReport download(Artifact[] artifacts,
                                                      Ivy ivy,
                                                      java.io.File cache)

exists

public boolean exists(Artifact artifact)

publish

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

reportFailure

public void reportFailure()
Reports last resolve failure as Messages


reportFailure

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

Parameters:
art -

listOrganisations

public fr.jayasoft.ivy.resolver.OrganisationEntry[] listOrganisations()

listModules

public fr.jayasoft.ivy.resolver.ModuleEntry[] listModules(fr.jayasoft.ivy.resolver.OrganisationEntry org)

listRevisions

public fr.jayasoft.ivy.resolver.RevisionEntry[] listRevisions(fr.jayasoft.ivy.resolver.ModuleEntry module)

dumpConfig

public void dumpConfig()