@Component(role=ProjectArtifactsCache.class) public class DefaultProjectArtifactsCache extends Object implements ProjectArtifactsCache
| Modifier and Type | Class and Description |
|---|---|
protected static class |
DefaultProjectArtifactsCache.CacheKey
CacheKey
|
ProjectArtifactsCache.CacheRecord, ProjectArtifactsCache.Key| Modifier and Type | Field and Description |
|---|---|
protected Map<ProjectArtifactsCache.Key,ProjectArtifactsCache.CacheRecord> |
cache |
| Constructor and Description |
|---|
DefaultProjectArtifactsCache() |
| Modifier and Type | Method and Description |
|---|---|
protected void |
assertUniqueKey(ProjectArtifactsCache.Key key) |
ProjectArtifactsCache.Key |
createKey(MavenProject project,
Collection<String> scopesToCollect,
Collection<String> scopesToResolve,
boolean aggregating,
RepositorySystemSession session) |
void |
flush() |
ProjectArtifactsCache.CacheRecord |
get(ProjectArtifactsCache.Key key) |
ProjectArtifactsCache.CacheRecord |
put(ProjectArtifactsCache.Key key,
LifecycleExecutionException exception) |
ProjectArtifactsCache.CacheRecord |
put(ProjectArtifactsCache.Key key,
Set<Artifact> projectArtifacts) |
void |
register(MavenProject project,
ProjectArtifactsCache.Key cacheKey,
ProjectArtifactsCache.CacheRecord record)
Registers the specified cache record for usage with the given project.
|
protected final Map<ProjectArtifactsCache.Key,ProjectArtifactsCache.CacheRecord> cache
public ProjectArtifactsCache.Key createKey(MavenProject project, Collection<String> scopesToCollect, Collection<String> scopesToResolve, boolean aggregating, RepositorySystemSession session)
createKey in interface ProjectArtifactsCachepublic ProjectArtifactsCache.CacheRecord get(ProjectArtifactsCache.Key key) throws LifecycleExecutionException
get in interface ProjectArtifactsCacheLifecycleExecutionExceptionpublic ProjectArtifactsCache.CacheRecord put(ProjectArtifactsCache.Key key, Set<Artifact> projectArtifacts)
put in interface ProjectArtifactsCacheprotected void assertUniqueKey(ProjectArtifactsCache.Key key)
public ProjectArtifactsCache.CacheRecord put(ProjectArtifactsCache.Key key, LifecycleExecutionException exception)
put in interface ProjectArtifactsCachepublic void flush()
flush in interface ProjectArtifactsCachepublic void register(MavenProject project, ProjectArtifactsCache.Key cacheKey, ProjectArtifactsCache.CacheRecord record)
ProjectArtifactsCacheregister in interface ProjectArtifactsCacheproject - The project that employs the plugin realm, must not be null.record - The cache record being used for the project, must not be null.Copyright © 2001–2021 The Apache Software Foundation. All rights reserved.