Interface ProjectArtifactsCache
-
- All Known Implementing Classes:
DefaultProjectArtifactsCache
public interface ProjectArtifactsCacheCaches project artifacts. Warning: This is an internal utility interface that is only public for technical reasons, it is not part of the public API. In particular, this interface can be changed or deleted without prior notice.- Author:
- Igor Fedorenko, Benjamin Bentmann, Anton Tanasenko
-
-
Nested Class Summary
Nested Classes Modifier and Type Interface Description static classProjectArtifactsCache.CacheRecordCacheRecordstatic interfaceProjectArtifactsCache.KeyA cache key.
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description ProjectArtifactsCache.KeycreateKey(MavenProject project, java.util.Collection<java.lang.String> scopesToCollect, java.util.Collection<java.lang.String> scopesToResolve, boolean aggregating, org.eclipse.aether.RepositorySystemSession session)voidflush()ProjectArtifactsCache.CacheRecordget(ProjectArtifactsCache.Key key)ProjectArtifactsCache.CacheRecordput(ProjectArtifactsCache.Key key, java.util.Set<org.apache.maven.artifact.Artifact> pluginArtifacts)ProjectArtifactsCache.CacheRecordput(ProjectArtifactsCache.Key key, LifecycleExecutionException e)voidregister(MavenProject project, ProjectArtifactsCache.Key cacheKey, ProjectArtifactsCache.CacheRecord rcrd)Registers the specified cache record for usage with the given project.
-
-
-
Method Detail
-
createKey
ProjectArtifactsCache.Key createKey(MavenProject project, java.util.Collection<java.lang.String> scopesToCollect, java.util.Collection<java.lang.String> scopesToResolve, boolean aggregating, org.eclipse.aether.RepositorySystemSession session)
-
get
ProjectArtifactsCache.CacheRecord get(ProjectArtifactsCache.Key key) throws LifecycleExecutionException
- Throws:
LifecycleExecutionException
-
put
ProjectArtifactsCache.CacheRecord put(ProjectArtifactsCache.Key key, java.util.Set<org.apache.maven.artifact.Artifact> pluginArtifacts)
-
put
ProjectArtifactsCache.CacheRecord put(ProjectArtifactsCache.Key key, LifecycleExecutionException e)
-
flush
void flush()
-
register
void register(MavenProject project, ProjectArtifactsCache.Key cacheKey, ProjectArtifactsCache.CacheRecord rcrd)
Registers 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.- Parameters:
project- The project that employs the plugin realm, must not benull.rcrd- The cache record being used for the project, must not benull.
-
-