@Component(role=ExtensionRealmCache.class) public class DefaultExtensionRealmCache extends Object implements ExtensionRealmCache, org.codehaus.plexus.personality.plexus.lifecycle.phase.Disposable
| Modifier and Type | Class and Description |
|---|---|
protected static class |
DefaultExtensionRealmCache.CacheKey |
ExtensionRealmCache.CacheRecord, ExtensionRealmCache.Key| Modifier and Type | Field and Description |
|---|---|
protected Map<ExtensionRealmCache.Key,ExtensionRealmCache.CacheRecord> |
cache |
| Constructor and Description |
|---|
DefaultExtensionRealmCache() |
| Modifier and Type | Method and Description |
|---|---|
ExtensionRealmCache.Key |
createKey(List<Artifact> extensionArtifacts) |
void |
dispose() |
void |
flush() |
ExtensionRealmCache.CacheRecord |
get(ExtensionRealmCache.Key key) |
ExtensionRealmCache.CacheRecord |
put(ExtensionRealmCache.Key key,
ClassRealm extensionRealm,
ExtensionDescriptor extensionDescriptor,
List<Artifact> artifacts) |
void |
register(MavenProject project,
ExtensionRealmCache.Key key,
ExtensionRealmCache.CacheRecord record)
Registers the specified cache record for usage with the given project.
|
protected final Map<ExtensionRealmCache.Key,ExtensionRealmCache.CacheRecord> cache
public DefaultExtensionRealmCache()
public ExtensionRealmCache.Key createKey(List<Artifact> extensionArtifacts)
createKey in interface ExtensionRealmCachepublic ExtensionRealmCache.CacheRecord get(ExtensionRealmCache.Key key)
get in interface ExtensionRealmCachepublic ExtensionRealmCache.CacheRecord put(ExtensionRealmCache.Key key, ClassRealm extensionRealm, ExtensionDescriptor extensionDescriptor, List<Artifact> artifacts)
put in interface ExtensionRealmCachepublic void flush()
flush in interface ExtensionRealmCachepublic void register(MavenProject project, ExtensionRealmCache.Key key, ExtensionRealmCache.CacheRecord record)
ExtensionRealmCacheregister in interface ExtensionRealmCacheproject - 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–2015 The Apache Software Foundation. All rights reserved.