Package org.apache.maven.plugin
Class DefaultPluginDescriptorCache
- java.lang.Object
-
- org.apache.maven.plugin.DefaultPluginDescriptorCache
-
- All Implemented Interfaces:
PluginDescriptorCache
@Component(role=PluginDescriptorCache.class) public class DefaultPluginDescriptorCache extends java.lang.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, PluginDescriptorCache.PluginDescriptorSupplier
-
-
Constructor Summary
Constructors Constructor Description DefaultPluginDescriptorCache()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description protected static org.apache.maven.plugin.descriptor.PluginDescriptorclone(org.apache.maven.plugin.descriptor.PluginDescriptor original)PluginDescriptorCache.KeycreateKey(org.apache.maven.model.Plugin plugin, java.util.List<org.eclipse.aether.repository.RemoteRepository> repositories, org.eclipse.aether.RepositorySystemSession session)voidflush()org.apache.maven.plugin.descriptor.PluginDescriptorget(PluginDescriptorCache.Key cacheKey)org.apache.maven.plugin.descriptor.PluginDescriptorget(PluginDescriptorCache.Key key, PluginDescriptorCache.PluginDescriptorSupplier supplier)voidput(PluginDescriptorCache.Key cacheKey, org.apache.maven.plugin.descriptor.PluginDescriptor pluginDescriptor)
-
-
-
Method Detail
-
flush
public void flush()
- Specified by:
flushin interfacePluginDescriptorCache
-
createKey
public PluginDescriptorCache.Key createKey(org.apache.maven.model.Plugin plugin, java.util.List<org.eclipse.aether.repository.RemoteRepository> repositories, org.eclipse.aether.RepositorySystemSession session)
- Specified by:
createKeyin interfacePluginDescriptorCache
-
get
public org.apache.maven.plugin.descriptor.PluginDescriptor get(PluginDescriptorCache.Key cacheKey)
- Specified by:
getin interfacePluginDescriptorCache
-
get
public org.apache.maven.plugin.descriptor.PluginDescriptor get(PluginDescriptorCache.Key key, PluginDescriptorCache.PluginDescriptorSupplier supplier) throws PluginDescriptorParsingException, PluginResolutionException, InvalidPluginDescriptorException
- Specified by:
getin interfacePluginDescriptorCache- Throws:
PluginDescriptorParsingExceptionPluginResolutionExceptionInvalidPluginDescriptorException
-
put
public void put(PluginDescriptorCache.Key cacheKey, org.apache.maven.plugin.descriptor.PluginDescriptor pluginDescriptor)
- Specified by:
putin interfacePluginDescriptorCache
-
clone
protected static org.apache.maven.plugin.descriptor.PluginDescriptor clone(org.apache.maven.plugin.descriptor.PluginDescriptor original)
-
-