@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
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,
org.codehaus.plexus.classworlds.realm.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 ExtensionRealmCache.Key createKey(List<Artifact> extensionArtifacts)
createKey
in interface ExtensionRealmCache
public ExtensionRealmCache.CacheRecord get(ExtensionRealmCache.Key key)
get
in interface ExtensionRealmCache
public ExtensionRealmCache.CacheRecord put(ExtensionRealmCache.Key key, org.codehaus.plexus.classworlds.realm.ClassRealm extensionRealm, ExtensionDescriptor extensionDescriptor, List<Artifact> artifacts)
put
in interface ExtensionRealmCache
public void flush()
flush
in interface ExtensionRealmCache
public void register(MavenProject project, ExtensionRealmCache.Key key, ExtensionRealmCache.CacheRecord record)
ExtensionRealmCache
register
in interface ExtensionRealmCache
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
.public void dispose()
dispose
in interface org.codehaus.plexus.personality.plexus.lifecycle.phase.Disposable
Copyright © 2001–2022 The Apache Software Foundation. All rights reserved.