org.apache.maven.project.artifact
Class DefaultMavenMetadataCache
java.lang.Object
org.apache.maven.project.artifact.DefaultMavenMetadataCache
- All Implemented Interfaces:
- MavenMetadataCache
@Component(role=MavenMetadataCache.class)
public class DefaultMavenMetadataCache
- extends Object
- implements MavenMetadataCache
Method Summary |
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)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
cache
protected final Map<DefaultMavenMetadataCache.CacheKey,DefaultMavenMetadataCache.CacheRecord> cache
DefaultMavenMetadataCache
public DefaultMavenMetadataCache()
get
public ResolutionGroup get(Artifact artifact,
boolean resolveManagedVersions,
ArtifactRepository localRepository,
List<ArtifactRepository> remoteRepositories)
- Specified by:
get
in interface MavenMetadataCache
put
public void put(Artifact artifact,
boolean resolveManagedVersions,
ArtifactRepository localRepository,
List<ArtifactRepository> remoteRepositories,
ResolutionGroup result)
- Specified by:
put
in interface MavenMetadataCache
newCacheKey
protected DefaultMavenMetadataCache.CacheKey newCacheKey(Artifact artifact,
boolean resolveManagedVersions,
ArtifactRepository localRepository,
List<ArtifactRepository> remoteRepositories)
put
protected void put(DefaultMavenMetadataCache.CacheKey cacheKey,
ResolutionGroup result)
flush
public void flush()
- Specified by:
flush
in interface MavenMetadataCache
Copyright © 2001-2013 The Apache Software Foundation. All Rights Reserved.