@Component(role=MavenMetadataCache.class) public class DefaultMavenMetadataCache extends Object implements MavenMetadataCache
Modifier and Type | Class and Description |
---|---|
static class |
DefaultMavenMetadataCache.CacheKey
CacheKey
|
class |
DefaultMavenMetadataCache.CacheRecord
CacheRecord
|
Modifier and Type | Field and Description |
---|---|
protected Map<DefaultMavenMetadataCache.CacheKey,DefaultMavenMetadataCache.CacheRecord> |
cache |
Constructor and Description |
---|
DefaultMavenMetadataCache() |
Modifier and Type | Method and Description |
---|---|
void |
flush() |
ResolutionGroup |
get(Artifact artifact,
boolean resolveManagedVersions,
ArtifactRepository localRepository,
List<ArtifactRepository> remoteRepositories) |
protected DefaultMavenMetadataCache.CacheKey |
newCacheKey(Artifact artifact,
boolean resolveManagedVersions,
ArtifactRepository localRepository,
List<ArtifactRepository> remoteRepositories) |
void |
put(Artifact artifact,
boolean resolveManagedVersions,
ArtifactRepository localRepository,
List<ArtifactRepository> remoteRepositories,
ResolutionGroup result) |
protected void |
put(DefaultMavenMetadataCache.CacheKey cacheKey,
ResolutionGroup result) |
protected final Map<DefaultMavenMetadataCache.CacheKey,DefaultMavenMetadataCache.CacheRecord> cache
public ResolutionGroup get(Artifact artifact, boolean resolveManagedVersions, ArtifactRepository localRepository, List<ArtifactRepository> remoteRepositories)
get
in interface MavenMetadataCache
public void put(Artifact artifact, boolean resolveManagedVersions, ArtifactRepository localRepository, List<ArtifactRepository> remoteRepositories, ResolutionGroup result)
put
in interface MavenMetadataCache
protected DefaultMavenMetadataCache.CacheKey newCacheKey(Artifact artifact, boolean resolveManagedVersions, ArtifactRepository localRepository, List<ArtifactRepository> remoteRepositories)
protected void put(DefaultMavenMetadataCache.CacheKey cacheKey, ResolutionGroup result)
public void flush()
flush
in interface MavenMetadataCache
Copyright © 2001–2021 The Apache Software Foundation. All rights reserved.