Class DefaultPluginArtifactsCache
java.lang.Object
org.apache.maven.plugin.DefaultPluginArtifactsCache
- All Implemented Interfaces:
- PluginArtifactsCache
@Named
@Singleton
public class DefaultPluginArtifactsCache
extends Object
implements PluginArtifactsCache
- 
Nested Class SummaryNested ClassesModifier and TypeClassDescriptionprotected static classCacheKeyNested classes/interfaces inherited from interface org.apache.maven.plugin.PluginArtifactsCachePluginArtifactsCache.CacheRecord, PluginArtifactsCache.Key
- 
Field SummaryFieldsModifier and TypeFieldDescriptionprotected final Map<PluginArtifactsCache.Key, PluginArtifactsCache.CacheRecord> 
- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptionprotected voidcreateKey(Plugin plugin, org.eclipse.aether.graph.DependencyFilter extensionFilter, List<org.eclipse.aether.repository.RemoteRepository> repositories, org.eclipse.aether.RepositorySystemSession session) voidflush()protected static booleanpluginEquals(Plugin a, Plugin b) protected static intpluginHashCode(Plugin plugin) put(PluginArtifactsCache.Key key, List<Artifact> pluginArtifacts) put(PluginArtifactsCache.Key key, PluginResolutionException exception) voidregister(MavenProject project, PluginArtifactsCache.Key cacheKey, PluginArtifactsCache.CacheRecord record) Registers the specified cache record for usage with the given project.
- 
Field Details- 
cache
 
- 
- 
Constructor Details- 
DefaultPluginArtifactsCachepublic DefaultPluginArtifactsCache()
 
- 
- 
Method Details- 
createKeypublic PluginArtifactsCache.Key createKey(Plugin plugin, org.eclipse.aether.graph.DependencyFilter extensionFilter, List<org.eclipse.aether.repository.RemoteRepository> repositories, org.eclipse.aether.RepositorySystemSession session) - Specified by:
- createKeyin interface- PluginArtifactsCache
 
- 
getpublic PluginArtifactsCache.CacheRecord get(PluginArtifactsCache.Key key) throws PluginResolutionException - Specified by:
- getin interface- PluginArtifactsCache
- Throws:
- PluginResolutionException
 
- 
putpublic PluginArtifactsCache.CacheRecord put(PluginArtifactsCache.Key key, List<Artifact> pluginArtifacts) - Specified by:
- putin interface- PluginArtifactsCache
 
- 
assertUniqueKey
- 
putpublic PluginArtifactsCache.CacheRecord put(PluginArtifactsCache.Key key, PluginResolutionException exception) - Specified by:
- putin interface- PluginArtifactsCache
 
- 
flushpublic void flush()- Specified by:
- flushin interface- PluginArtifactsCache
 
- 
pluginHashCode
- 
pluginEquals
- 
registerpublic void register(MavenProject project, PluginArtifactsCache.Key cacheKey, PluginArtifactsCache.CacheRecord record) Description copied from interface:PluginArtifactsCacheRegisters 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- PluginArtifactsCache
- 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.
 
 
-