org.apache.maven.plugin
Interface PluginArtifactsCache

All Known Implementing Classes:
DefaultPluginArtifactsCache

public interface PluginArtifactsCache

Caches plugin 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

Nested Class Summary
static class PluginArtifactsCache.CacheRecord
           
static interface PluginArtifactsCache.Key
          A cache key.
 
Method Summary
 PluginArtifactsCache.Key createKey(Plugin plugin, DependencyFilter extensionFilter, List<RemoteRepository> repositories, RepositorySystemSession session)
           
 void flush()
           
 PluginArtifactsCache.CacheRecord get(PluginArtifactsCache.Key key)
           
 PluginArtifactsCache.CacheRecord put(PluginArtifactsCache.Key key, List<Artifact> pluginArtifacts)
           
 PluginArtifactsCache.CacheRecord put(PluginArtifactsCache.Key key, PluginResolutionException e)
           
 void register(MavenProject project, PluginArtifactsCache.CacheRecord record)
          Registers the specified cache record for usage with the given project.
 

Method Detail

createKey

PluginArtifactsCache.Key createKey(Plugin plugin,
                                   DependencyFilter extensionFilter,
                                   List<RemoteRepository> repositories,
                                   RepositorySystemSession session)

get

PluginArtifactsCache.CacheRecord get(PluginArtifactsCache.Key key)
                                     throws PluginResolutionException
Throws:
PluginResolutionException

put

PluginArtifactsCache.CacheRecord put(PluginArtifactsCache.Key key,
                                     List<Artifact> pluginArtifacts)

put

PluginArtifactsCache.CacheRecord put(PluginArtifactsCache.Key key,
                                     PluginResolutionException e)

flush

void flush()

register

void register(MavenProject project,
              PluginArtifactsCache.CacheRecord record)
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 be null.
record - The cache record being used for the project, must not be null.


Copyright © 2001-2012 The Apache Software Foundation. All Rights Reserved.