public interface PluginRealmCache
Modifier and Type | Interface and Description |
---|---|
static class |
PluginRealmCache.CacheRecord
CacheRecord
|
static interface |
PluginRealmCache.Key
A cache key.
|
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 |
flush() |
PluginRealmCache.CacheRecord |
get(PluginRealmCache.Key key) |
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.
|
PluginRealmCache.Key createKey(Plugin plugin, ClassLoader parentRealm, Map<String,ClassLoader> foreignImports, DependencyFilter dependencyFilter, List<RemoteRepository> repositories, RepositorySystemSession session)
PluginRealmCache.CacheRecord get(PluginRealmCache.Key key)
PluginRealmCache.CacheRecord put(PluginRealmCache.Key key, ClassRealm pluginRealm, List<Artifact> pluginArtifacts)
void flush()
void register(MavenProject project, PluginRealmCache.Key key, PluginRealmCache.CacheRecord record)
project
- The project that employs the plugin realm, must not be null
.record
- The cache record being used for the project, must not be null
.Copyright © 2001–2019 The Apache Software Foundation. All rights reserved.