Class DefaultMavenMetadataCache
java.lang.Object
org.apache.maven.project.artifact.DefaultMavenMetadataCache
- All Implemented Interfaces:
MavenMetadataCache
@Named
@Singleton
public class DefaultMavenMetadataCache
extends Object
implements MavenMetadataCache
DefaultMavenMetadataCache
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic class
CacheKeyclass
CacheRecord -
Field Summary
Modifier and TypeFieldDescriptionprotected final Map<DefaultMavenMetadataCache.CacheKey,
DefaultMavenMetadataCache.CacheRecord> -
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
flush()
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)
-
Field Details
-
cache
-
-
Constructor Details
-
DefaultMavenMetadataCache
public DefaultMavenMetadataCache()
-
-
Method Details
-
get
public ResolutionGroup get(Artifact artifact, boolean resolveManagedVersions, ArtifactRepository localRepository, List<ArtifactRepository> remoteRepositories) - Specified by:
get
in interfaceMavenMetadataCache
-
put
public void put(Artifact artifact, boolean resolveManagedVersions, ArtifactRepository localRepository, List<ArtifactRepository> remoteRepositories, ResolutionGroup result) - Specified by:
put
in interfaceMavenMetadataCache
-
newCacheKey
protected DefaultMavenMetadataCache.CacheKey newCacheKey(Artifact artifact, boolean resolveManagedVersions, ArtifactRepository localRepository, List<ArtifactRepository> remoteRepositories) -
put
-
flush
public void flush()- Specified by:
flush
in interfaceMavenMetadataCache
-