org.apache.maven.plugin
Class DefaultPluginDescriptorCache

java.lang.Object
  extended by org.apache.maven.plugin.DefaultPluginDescriptorCache
All Implemented Interfaces:
PluginDescriptorCache

@Component(role=PluginDescriptorCache.class)
public class DefaultPluginDescriptorCache
extends Object
implements PluginDescriptorCache

Caches raw plugin descriptors. A raw plugin descriptor is a descriptor that has just been extracted from the plugin artifact and does not contain any runtime specific data. The cache must not be used for descriptors that hold runtime data like the plugin realm. 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.

Since:
3.0
Author:
Benjamin Bentmann

Nested Class Summary
 
Nested classes/interfaces inherited from interface org.apache.maven.plugin.PluginDescriptorCache
PluginDescriptorCache.Key
 
Constructor Summary
DefaultPluginDescriptorCache()
           
 
Method Summary
 PluginDescriptorCache.Key createKey(Plugin plugin, List<org.sonatype.aether.repository.RemoteRepository> repositories, org.sonatype.aether.RepositorySystemSession session)
           
 void flush()
           
 PluginDescriptor get(PluginDescriptorCache.Key cacheKey)
           
 void put(PluginDescriptorCache.Key cacheKey, PluginDescriptor pluginDescriptor)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DefaultPluginDescriptorCache

public DefaultPluginDescriptorCache()
Method Detail

flush

public void flush()
Specified by:
flush in interface PluginDescriptorCache

createKey

public PluginDescriptorCache.Key createKey(Plugin plugin,
                                           List<org.sonatype.aether.repository.RemoteRepository> repositories,
                                           org.sonatype.aether.RepositorySystemSession session)
Specified by:
createKey in interface PluginDescriptorCache

get

public PluginDescriptor get(PluginDescriptorCache.Key cacheKey)
Specified by:
get in interface PluginDescriptorCache

put

public void put(PluginDescriptorCache.Key cacheKey,
                PluginDescriptor pluginDescriptor)
Specified by:
put in interface PluginDescriptorCache


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