org.apache.ivy.plugins.resolver
Class CacheResolver

java.lang.Object
  extended by org.apache.ivy.plugins.resolver.AbstractResolver
      extended by org.apache.ivy.plugins.resolver.BasicResolver
          extended by org.apache.ivy.plugins.resolver.AbstractResourceResolver
              extended by org.apache.ivy.plugins.resolver.RepositoryResolver
                  extended by org.apache.ivy.plugins.resolver.FileSystemResolver
                      extended by org.apache.ivy.plugins.resolver.CacheResolver
All Implemented Interfaces:
IvySettingsAware, DependencyResolver, HasLatestStrategy

public class CacheResolver
extends FileSystemResolver


Field Summary
 
Fields inherited from class org.apache.ivy.plugins.resolver.BasicResolver
_workspaceName, DATE_FORMAT
 
Constructor Summary
CacheResolver()
           
CacheResolver(IvySettings settings)
           
 
Method Summary
 DownloadReport download(Artifact[] artifacts, DownloadOptions options)
           
 void dumpSettings()
           
 boolean exists(Artifact artifact)
          Default implementation actually download the artifact Subclasses should overwrite this to avoid the download
 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 getTypeName()
           
 ModuleEntry[] listModules(OrganisationEntry org)
           
 OrganisationEntry[] listOrganisations()
           
 RevisionEntry[] listRevisions(ModuleEntry module)
           
 void publish(Artifact artifact, java.io.File src, boolean overwrite)
           
 
Methods inherited from class org.apache.ivy.plugins.resolver.FileSystemResolver
isLocal, setLocal
 
Methods inherited from class org.apache.ivy.plugins.resolver.RepositoryResolver
findResourceUsingPattern, findResourceUsingPattern, findTokenValues, get, getRepository, isAlwaysCheckExactRevision, setAlwaysCheckExactRevision, setName, setRepository, setSettings
 
Methods inherited from class org.apache.ivy.plugins.resolver.AbstractResourceResolver
addArtifactPattern, addConfiguredArtifact, addConfiguredIvy, addIvyPattern, convertM2IdForResourceSearch, findArtifactNames, findArtifactRef, findIvyFileRef, findIvyNames, findNames, findResource, findResourceUsingPatterns, getArtifactPatterns, getIvyPatterns, isM2compatible, setArtifactPatterns, setIvyPatterns, setM2compatible
 
Methods inherited from class org.apache.ivy.plugins.resolver.BasicResolver
acceptLatest, clearArtifactAttempts, clearIvyAttempts, findFirstArtifactRef, getAndCheck, getArtifactRef, getChecksumAlgorithms, getDefaultRMDParser, getPublicationDate, getRMDParser, getWorkspaceName, isAllownomd, isCheckconsistency, isCheckmodified, isEnvDependent, listTokenValues, logArtifactAttempt, logAttempt, logIvyAttempt, parse, reportFailure, reportFailure, searchedRmr, setAllownomd, setCheckconsistency, setCheckmodified, setChecksums, setEnvDependent, setWorkspaceName, toString
 
Methods inherited from class org.apache.ivy.plugins.resolver.AbstractResolver
checkInterrupted, doValidate, findModuleInCache, fromSystem, fromSystem, getChangingMatcher, getChangingMatcherName, getChangingPattern, getLatest, getLatestStrategy, getName, getNamespace, getSettings, getSystemNode, hidePassword, isValidate, setChangingMatcher, setChangingPattern, setLatest, setLatestStrategy, setNamespace, setValidate, toSystem, toSystem, toSystem, toSystem
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

CacheResolver

public CacheResolver()

CacheResolver

public CacheResolver(IvySettings settings)
Method Detail

getDependency

public ResolvedModuleRevision getDependency(DependencyDescriptor dd,
                                            ResolveData data)
                                     throws java.text.ParseException
Description copied from interface: DependencyResolver
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 ##)

Specified by:
getDependency in interface DependencyResolver
Overrides:
getDependency in class BasicResolver
Throws:
java.text.ParseException

download

public DownloadReport download(Artifact[] artifacts,
                               DownloadOptions options)
Specified by:
download in interface DependencyResolver
Overrides:
download in class RepositoryResolver

exists

public boolean exists(Artifact artifact)
Description copied from class: AbstractResolver
Default implementation actually download the artifact Subclasses should overwrite this to avoid the download

Specified by:
exists in interface DependencyResolver
Overrides:
exists in class BasicResolver

publish

public void publish(Artifact artifact,
                    java.io.File src,
                    boolean overwrite)
             throws java.io.IOException
Specified by:
publish in interface DependencyResolver
Overrides:
publish in class RepositoryResolver
Throws:
java.io.IOException

listOrganisations

public OrganisationEntry[] listOrganisations()
Specified by:
listOrganisations in interface DependencyResolver
Overrides:
listOrganisations in class BasicResolver

listModules

public ModuleEntry[] listModules(OrganisationEntry org)
Specified by:
listModules in interface DependencyResolver
Overrides:
listModules in class BasicResolver

listRevisions

public RevisionEntry[] listRevisions(ModuleEntry module)
Specified by:
listRevisions in interface DependencyResolver
Overrides:
listRevisions in class BasicResolver

dumpSettings

public void dumpSettings()
Specified by:
dumpSettings in interface DependencyResolver
Overrides:
dumpSettings in class RepositoryResolver

getTypeName

public java.lang.String getTypeName()
Overrides:
getTypeName in class FileSystemResolver