Class DefaultProjectArtifactsCache
java.lang.Object
org.apache.maven.project.artifact.DefaultProjectArtifactsCache
- All Implemented Interfaces:
 ProjectArtifactsCache
@Component(role=ProjectArtifactsCache.class)
public class DefaultProjectArtifactsCache
extends Object
implements ProjectArtifactsCache
- Author:
 - Igor Fedorenko, Benjamin Bentmann, Anton Tanasenko
 
- 
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionprotected static classCacheKeyNested classes/interfaces inherited from interface org.apache.maven.project.artifact.ProjectArtifactsCache
ProjectArtifactsCache.CacheRecord, ProjectArtifactsCache.Key - 
Field Summary
FieldsModifier and TypeFieldDescriptionprotected final Map<ProjectArtifactsCache.Key, ProjectArtifactsCache.CacheRecord>  - 
Constructor Summary
Constructors - 
Method Summary
Modifier and TypeMethodDescriptionprotected voidcreateKey(MavenProject project, Collection<String> scopesToCollect, Collection<String> scopesToResolve, boolean aggregating, org.eclipse.aether.RepositorySystemSession session) voidflush()put(ProjectArtifactsCache.Key key, Set<Artifact> projectArtifacts) put(ProjectArtifactsCache.Key key, LifecycleExecutionException exception) voidregister(MavenProject project, ProjectArtifactsCache.Key cacheKey, ProjectArtifactsCache.CacheRecord record) Registers the specified cache record for usage with the given project. 
- 
Field Details
- 
cache
 
 - 
 - 
Constructor Details
- 
DefaultProjectArtifactsCache
public DefaultProjectArtifactsCache() 
 - 
 - 
Method Details
- 
createKey
public ProjectArtifactsCache.Key createKey(MavenProject project, Collection<String> scopesToCollect, Collection<String> scopesToResolve, boolean aggregating, org.eclipse.aether.RepositorySystemSession session) - Specified by:
 createKeyin interfaceProjectArtifactsCache
 - 
get
public ProjectArtifactsCache.CacheRecord get(ProjectArtifactsCache.Key key) throws LifecycleExecutionException - Specified by:
 getin interfaceProjectArtifactsCache- Throws:
 LifecycleExecutionException
 - 
put
public ProjectArtifactsCache.CacheRecord put(ProjectArtifactsCache.Key key, Set<Artifact> projectArtifacts) - Specified by:
 putin interfaceProjectArtifactsCache
 - 
assertUniqueKey
 - 
put
public ProjectArtifactsCache.CacheRecord put(ProjectArtifactsCache.Key key, LifecycleExecutionException exception) - Specified by:
 putin interfaceProjectArtifactsCache
 - 
flush
public void flush()- Specified by:
 flushin interfaceProjectArtifactsCache
 - 
register
public void register(MavenProject project, ProjectArtifactsCache.Key cacheKey, ProjectArtifactsCache.CacheRecord record) Description copied from interface:ProjectArtifactsCacheRegisters the specified cache record for usage with the given project. Integrators can use the information collected from this method in combination with a custom cache implementation to dispose unused records from the cache.- Specified by:
 registerin interfaceProjectArtifactsCache- Parameters:
 project- The project that employs the plugin realm, must not benull.record- The cache record being used for the project, must not benull.
 
 -