@Component(role=PluginRealmCache.class) public class DefaultPluginRealmCache extends Object implements PluginRealmCache, Disposable
| Modifier and Type | Class and Description |
|---|---|
protected static class |
DefaultPluginRealmCache.CacheKey |
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,
org.eclipse.aether.graph.DependencyFilter dependencyFilter,
List<org.eclipse.aether.repository.RemoteRepository> repositories,
org.eclipse.aether.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 DefaultPluginRealmCache()
public PluginRealmCache.Key createKey(Plugin plugin, ClassLoader parentRealm, Map<String,ClassLoader> foreignImports, org.eclipse.aether.graph.DependencyFilter dependencyFilter, List<org.eclipse.aether.repository.RemoteRepository> repositories, org.eclipse.aether.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)
protected static boolean pluginEquals(Plugin a, Plugin b)
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 DisposableCopyright © 2001–2015 The Apache Software Foundation. All rights reserved.