@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,
org.eclipse.aether.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, org.eclipse.aether.RepositorySystemSession session)
createKey
in interface ProjectArtifactsCache
public ProjectArtifactsCache.CacheRecord get(ProjectArtifactsCache.Key key) throws LifecycleExecutionException
get
in interface ProjectArtifactsCache
LifecycleExecutionException
public ProjectArtifactsCache.CacheRecord put(ProjectArtifactsCache.Key key, Set<Artifact> projectArtifacts)
put
in interface ProjectArtifactsCache
protected void assertUniqueKey(ProjectArtifactsCache.Key key)
public ProjectArtifactsCache.CacheRecord put(ProjectArtifactsCache.Key key, LifecycleExecutionException exception)
put
in interface ProjectArtifactsCache
public void flush()
flush
in interface ProjectArtifactsCache
public void register(MavenProject project, ProjectArtifactsCache.Key cacheKey, ProjectArtifactsCache.CacheRecord record)
ProjectArtifactsCache
register
in interface ProjectArtifactsCache
project
- 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–2018 The Apache Software Foundation. All rights reserved.