org.apache.maven.project.artifact
Class DefaultMavenMetadataCache

java.lang.Object
  extended by org.apache.maven.project.artifact.DefaultMavenMetadataCache
All Implemented Interfaces:
MavenMetadataCache

@Component(role=MavenMetadataCache.class)
public class DefaultMavenMetadataCache
extends Object
implements MavenMetadataCache


Nested Class Summary
static class DefaultMavenMetadataCache.CacheKey
           
 class DefaultMavenMetadataCache.CacheRecord
           
 
Field Summary
protected  Map<DefaultMavenMetadataCache.CacheKey,DefaultMavenMetadataCache.CacheRecord> cache
           
 
Constructor Summary
DefaultMavenMetadataCache()
           
 
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
 

Field Detail

cache

protected final Map<DefaultMavenMetadataCache.CacheKey,DefaultMavenMetadataCache.CacheRecord> cache
Constructor Detail

DefaultMavenMetadataCache

public DefaultMavenMetadataCache()
Method Detail

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.