@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| 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) |
void |
put(PluginDescriptorCache.Key cacheKey,
PluginDescriptor pluginDescriptor) |
private java.util.Map<PluginDescriptorCache.Key,PluginDescriptor> descriptors
public void flush()
flush in interface PluginDescriptorCachepublic PluginDescriptorCache.Key createKey(Plugin plugin, java.util.List<org.eclipse.aether.repository.RemoteRepository> repositories, org.eclipse.aether.RepositorySystemSession session)
createKey in interface PluginDescriptorCachepublic PluginDescriptor get(PluginDescriptorCache.Key cacheKey)
get in interface PluginDescriptorCachepublic void put(PluginDescriptorCache.Key cacheKey, PluginDescriptor pluginDescriptor)
put in interface PluginDescriptorCacheprotected static PluginDescriptor clone(PluginDescriptor original)
private static java.util.List<org.codehaus.plexus.component.repository.ComponentDescriptor<?>> clone(java.util.List<MojoDescriptor> mojos, PluginDescriptor pluginDescriptor)