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 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
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionprivate static final classNested classes/interfaces inherited from interface org.apache.maven.plugin.PluginDescriptorCache
PluginDescriptorCache.Key, PluginDescriptorCache.PluginDescriptorSupplier -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprivate static List<org.codehaus.plexus.component.repository.ComponentDescriptor<?>> clone(List<MojoDescriptor> mojos, PluginDescriptor pluginDescriptor) protected static PluginDescriptorclone(PluginDescriptor original) createKey(Plugin plugin, List<org.eclipse.aether.repository.RemoteRepository> repositories, org.eclipse.aether.RepositorySystemSession session) voidflush()get(PluginDescriptorCache.Key cacheKey) voidput(PluginDescriptorCache.Key cacheKey, PluginDescriptor pluginDescriptor)
-
Field Details
-
descriptors
-
-
Constructor Details
-
DefaultPluginDescriptorCache
public DefaultPluginDescriptorCache()
-
-
Method Details
-
flush
public void flush()- Specified by:
flushin interfacePluginDescriptorCache
-
createKey
public PluginDescriptorCache.Key createKey(Plugin plugin, List<org.eclipse.aether.repository.RemoteRepository> repositories, org.eclipse.aether.RepositorySystemSession session) - Specified by:
createKeyin interfacePluginDescriptorCache
-
get
- Specified by:
getin interfacePluginDescriptorCache
-
get
public PluginDescriptor get(PluginDescriptorCache.Key key, PluginDescriptorCache.PluginDescriptorSupplier supplier) throws PluginDescriptorParsingException, PluginResolutionException, InvalidPluginDescriptorException - Specified by:
getin interfacePluginDescriptorCache- Throws:
PluginDescriptorParsingExceptionPluginResolutionExceptionInvalidPluginDescriptorException
-
put
- Specified by:
putin interfacePluginDescriptorCache
-
clone
-
clone
private static List<org.codehaus.plexus.component.repository.ComponentDescriptor<?>> clone(List<MojoDescriptor> mojos, PluginDescriptor pluginDescriptor)
-