Class DefaultProjectArtifactsCache
java.lang.Object
org.apache.maven.project.artifact.DefaultProjectArtifactsCache
- All Implemented Interfaces:
- ProjectArtifactsCache
@Named
@Singleton
public class DefaultProjectArtifactsCache
extends Object
implements ProjectArtifactsCache
- 
Nested Class SummaryNested ClassesModifier and TypeClassDescriptionprotected static classCacheKeyNested classes/interfaces inherited from interface org.apache.maven.project.artifact.ProjectArtifactsCacheProjectArtifactsCache.ArtifactsSetWithResult, ProjectArtifactsCache.CacheRecord, ProjectArtifactsCache.Key
- 
Field SummaryFieldsModifier and TypeFieldDescriptionprotected final Map<ProjectArtifactsCache.Key, ProjectArtifactsCache.CacheRecord> protected final Map<ProjectArtifactsCache.Key, ProjectArtifactsCache.Key> 
- 
Constructor SummaryConstructors
- 
Method SummaryModifier 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
- 
keys
 
- 
- 
Constructor Details- 
DefaultProjectArtifactsCachepublic DefaultProjectArtifactsCache()
 
- 
- 
Method Details- 
createKeypublic ProjectArtifactsCache.Key createKey(MavenProject project, Collection<String> scopesToCollect, Collection<String> scopesToResolve, boolean aggregating, org.eclipse.aether.RepositorySystemSession session) - Specified by:
- createKeyin interface- ProjectArtifactsCache
 
- 
getpublic ProjectArtifactsCache.CacheRecord get(ProjectArtifactsCache.Key key) throws LifecycleExecutionException - Specified by:
- getin interface- ProjectArtifactsCache
- Throws:
- LifecycleExecutionException
 
- 
putpublic ProjectArtifactsCache.CacheRecord put(ProjectArtifactsCache.Key key, Set<Artifact> projectArtifacts) - Specified by:
- putin interface- ProjectArtifactsCache
 
- 
putpublic ProjectArtifactsCache.CacheRecord put(ProjectArtifactsCache.Key key, LifecycleExecutionException exception) - Specified by:
- putin interface- ProjectArtifactsCache
 
- 
assertUniqueKey
- 
flushpublic void flush()- Specified by:
- flushin interface- ProjectArtifactsCache
 
- 
registerpublic 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 interface- ProjectArtifactsCache
- Parameters:
- 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.
 
 
-