@Component(role=PluginRealmCache.class) public class DefaultPluginRealmCache extends Object implements PluginRealmCache, org.codehaus.plexus.personality.plexus.lifecycle.phase.Disposable
| Modifier and Type | Class and Description | 
|---|---|
| protected static class  | DefaultPluginRealmCache.CacheKeyCacheKey | 
PluginRealmCache.CacheRecord, PluginRealmCache.Key| Modifier and Type | Field and Description | 
|---|---|
| protected Map<PluginRealmCache.Key,PluginRealmCache.CacheRecord> | cache | 
| Constructor and Description | 
|---|
| DefaultPluginRealmCache() | 
| Modifier and Type | Method and Description | 
|---|---|
| PluginRealmCache.Key | createKey(Plugin plugin,
         ClassLoader parentRealm,
         Map<String,ClassLoader> foreignImports,
         DependencyFilter dependencyFilter,
         List<RemoteRepository> repositories,
         RepositorySystemSession session) | 
| void | dispose() | 
| void | flush() | 
| PluginRealmCache.CacheRecord | get(PluginRealmCache.Key key) | 
| protected static boolean | pluginEquals(Plugin a,
            Plugin b) | 
| protected static int | pluginHashCode(Plugin plugin) | 
| PluginRealmCache.CacheRecord | put(PluginRealmCache.Key key,
   ClassRealm pluginRealm,
   List<Artifact> pluginArtifacts) | 
| void | register(MavenProject project,
        PluginRealmCache.Key key,
        PluginRealmCache.CacheRecord record)Registers the specified cache record for usage with the given project. | 
protected final Map<PluginRealmCache.Key,PluginRealmCache.CacheRecord> cache
public PluginRealmCache.Key createKey(Plugin plugin, ClassLoader parentRealm, Map<String,ClassLoader> foreignImports, DependencyFilter dependencyFilter, List<RemoteRepository> repositories, RepositorySystemSession session)
createKey in interface PluginRealmCachepublic PluginRealmCache.CacheRecord get(PluginRealmCache.Key key)
get in interface PluginRealmCachepublic PluginRealmCache.CacheRecord put(PluginRealmCache.Key key, ClassRealm pluginRealm, List<Artifact> pluginArtifacts)
put in interface PluginRealmCachepublic void flush()
flush in interface PluginRealmCacheprotected static int pluginHashCode(Plugin plugin)
public void register(MavenProject project, PluginRealmCache.Key key, PluginRealmCache.CacheRecord record)
PluginRealmCacheregister in interface PluginRealmCacheproject - The project that employs the plugin realm, must not be null.record - The cache record being used for the project, must not be null.public void dispose()
dispose in interface org.codehaus.plexus.personality.plexus.lifecycle.phase.DisposableCopyright © 2001–2019 The Apache Software Foundation. All rights reserved.