|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface RepositoryCacheManager
Method Summary | |
---|---|
ResolvedModuleRevision |
cacheModuleDescriptor(DependencyResolver resolver,
ResolvedResource orginalMetadataRef,
Artifact requestedMetadataArtifact,
ResourceDownloader downloader,
CacheMetadataOptions options)
|
ArtifactDownloadReport |
download(Artifact artifact,
ArtifactResourceResolver resourceResolver,
ResourceDownloader resourceDownloader,
CacheDownloadOptions options)
Downloads an artifact to this cache. |
ResolvedModuleRevision |
findModuleInCache(ModuleRevisionId mrid,
boolean validate,
java.lang.String expectedResolver)
Search a module descriptor in cache for a mrid |
java.io.File |
getArchiveFileInCache(Artifact artifact)
Returns a File object pointing to where the artifact can be found on the local file system. |
java.io.File |
getArchiveFileInCache(Artifact artifact,
ArtifactOrigin origin)
Returns a File object pointing to where the artifact can be found on the local file system. |
java.io.File |
getArchiveFileInCache(Artifact artifact,
ArtifactOrigin origin,
boolean useOrigin)
Returns a File object pointing to where the artifact can be found on the local file system, using or not the original location depending on the availability of origin information provided as parameter and the setting of useOrigin. |
java.lang.String |
getArchivePathInCache(Artifact artifact)
|
java.lang.String |
getArchivePathInCache(Artifact artifact,
ArtifactOrigin origin)
|
java.io.File |
getIvyFileInCache(ModuleRevisionId mrid)
|
java.io.File |
getRepositoryCacheRoot()
|
ArtifactOrigin |
getSavedArtifactOrigin(Artifact artifact)
|
void |
originalToCachedModuleDescriptor(DependencyResolver resolver,
ResolvedResource orginalMetadataRef,
Artifact requestedMetadataArtifact,
ModuleDescriptor md,
ModuleDescriptorWriter writer)
|
void |
saveResolvers(ModuleDescriptor descriptor,
java.lang.String metadataResolverName,
java.lang.String artifactResolverName)
Saves the information of which resolvers were used to resolve a module (both for metadata and artifact), so that this info can be loaded later (even after a jvm restart) for the use of findModuleInCache(ModuleRevisionId, boolean, String) . |
Method Detail |
---|
java.io.File getRepositoryCacheRoot()
java.io.File getIvyFileInCache(ModuleRevisionId mrid)
java.io.File getArchiveFileInCache(Artifact artifact)
java.io.File getArchiveFileInCache(Artifact artifact, ArtifactOrigin origin)
java.io.File getArchiveFileInCache(Artifact artifact, ArtifactOrigin origin, boolean useOrigin)
java.lang.String getArchivePathInCache(Artifact artifact)
java.lang.String getArchivePathInCache(Artifact artifact, ArtifactOrigin origin)
void saveResolvers(ModuleDescriptor descriptor, java.lang.String metadataResolverName, java.lang.String artifactResolverName)
findModuleInCache(ModuleRevisionId, boolean, String)
.
md
- the module descriptor resolvedmetadataResolverName
- metadata resolver nameartifactResolverName
- artifact resolver nameArtifactOrigin getSavedArtifactOrigin(Artifact artifact)
ResolvedModuleRevision findModuleInCache(ModuleRevisionId mrid, boolean validate, java.lang.String expectedResolver)
mrid
- the id of the module to searchvalidate
- true to validate ivy file found in cache before returningexpectedResolver
- the resolver with which the md in cache must have been resolved to be returned,
null if this doesn't matter
ArtifactDownloadReport download(Artifact artifact, ArtifactResourceResolver resourceResolver, ResourceDownloader resourceDownloader, CacheDownloadOptions options)
artifact
- the artifact to downloadresourceResolver
- a resource resolver to use if the artifact needs to be resolved to a Resource for
downloadingresourceDownloader
- a resource downloader to use if actual download of the resource is neededoptions
- a set of options to adjust the download
ResolvedModuleRevision cacheModuleDescriptor(DependencyResolver resolver, ResolvedResource orginalMetadataRef, Artifact requestedMetadataArtifact, ResourceDownloader downloader, CacheMetadataOptions options) throws java.text.ParseException
java.text.ParseException
void originalToCachedModuleDescriptor(DependencyResolver resolver, ResolvedResource orginalMetadataRef, Artifact requestedMetadataArtifact, ModuleDescriptor md, ModuleDescriptorWriter writer)
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |