@Component(role=PluginDescriptorCache.class) public class DefaultPluginDescriptorCache extends java.lang.Object implements PluginDescriptorCache
Modifier and Type | Class and Description |
---|---|
private static class |
DefaultPluginDescriptorCache.CacheKey |
PluginDescriptorCache.Key, PluginDescriptorCache.PluginDescriptorSupplier
Modifier and Type | Field and Description |
---|---|
private java.util.Map<PluginDescriptorCache.Key,PluginDescriptor> |
descriptors |
Constructor and Description |
---|
DefaultPluginDescriptorCache() |
Modifier and Type | Method and Description |
---|---|
private static java.util.List<org.codehaus.plexus.component.repository.ComponentDescriptor<?>> |
clone(java.util.List<MojoDescriptor> mojos,
PluginDescriptor pluginDescriptor) |
protected static PluginDescriptor |
clone(PluginDescriptor original) |
PluginDescriptorCache.Key |
createKey(Plugin plugin,
java.util.List<org.eclipse.aether.repository.RemoteRepository> repositories,
org.eclipse.aether.RepositorySystemSession session) |
void |
flush() |
PluginDescriptor |
get(PluginDescriptorCache.Key cacheKey) |
PluginDescriptor |
get(PluginDescriptorCache.Key key,
PluginDescriptorCache.PluginDescriptorSupplier supplier) |
void |
put(PluginDescriptorCache.Key cacheKey,
PluginDescriptor pluginDescriptor) |
private java.util.Map<PluginDescriptorCache.Key,PluginDescriptor> descriptors
public void flush()
flush
in interface PluginDescriptorCache
public PluginDescriptorCache.Key createKey(Plugin plugin, java.util.List<org.eclipse.aether.repository.RemoteRepository> repositories, org.eclipse.aether.RepositorySystemSession session)
createKey
in interface PluginDescriptorCache
public PluginDescriptor get(PluginDescriptorCache.Key cacheKey)
get
in interface PluginDescriptorCache
public PluginDescriptor get(PluginDescriptorCache.Key key, PluginDescriptorCache.PluginDescriptorSupplier supplier) throws PluginDescriptorParsingException, PluginResolutionException, InvalidPluginDescriptorException
get
in interface PluginDescriptorCache
PluginDescriptorParsingException
PluginResolutionException
InvalidPluginDescriptorException
public void put(PluginDescriptorCache.Key cacheKey, PluginDescriptor pluginDescriptor)
put
in interface PluginDescriptorCache
protected static PluginDescriptor clone(PluginDescriptor original)
private static java.util.List<org.codehaus.plexus.component.repository.ComponentDescriptor<?>> clone(java.util.List<MojoDescriptor> mojos, PluginDescriptor pluginDescriptor)