@Component(role=ProjectRealmCache.class) public class DefaultProjectRealmCache extends Object implements ProjectRealmCache, org.codehaus.plexus.personality.plexus.lifecycle.phase.Disposable
Modifier and Type | Class and Description |
---|---|
protected static class |
DefaultProjectRealmCache.CacheKey
CacheKey
|
ProjectRealmCache.CacheRecord, ProjectRealmCache.Key
Modifier and Type | Field and Description |
---|---|
protected Map<ProjectRealmCache.Key,ProjectRealmCache.CacheRecord> |
cache |
Constructor and Description |
---|
DefaultProjectRealmCache() |
Modifier and Type | Method and Description |
---|---|
ProjectRealmCache.Key |
createKey(List<? extends org.codehaus.plexus.classworlds.realm.ClassRealm> extensionRealms) |
void |
dispose() |
void |
flush() |
ProjectRealmCache.CacheRecord |
get(ProjectRealmCache.Key key) |
ProjectRealmCache.CacheRecord |
put(ProjectRealmCache.Key key,
org.codehaus.plexus.classworlds.realm.ClassRealm projectRealm,
org.eclipse.aether.graph.DependencyFilter extensionArtifactFilter) |
void |
register(MavenProject project,
ProjectRealmCache.Key key,
ProjectRealmCache.CacheRecord record)
Registers the specified cache record for usage with the given project.
|
protected final Map<ProjectRealmCache.Key,ProjectRealmCache.CacheRecord> cache
public ProjectRealmCache.Key createKey(List<? extends org.codehaus.plexus.classworlds.realm.ClassRealm> extensionRealms)
createKey
in interface ProjectRealmCache
public ProjectRealmCache.CacheRecord get(ProjectRealmCache.Key key)
get
in interface ProjectRealmCache
public ProjectRealmCache.CacheRecord put(ProjectRealmCache.Key key, org.codehaus.plexus.classworlds.realm.ClassRealm projectRealm, org.eclipse.aether.graph.DependencyFilter extensionArtifactFilter)
put
in interface ProjectRealmCache
public void flush()
flush
in interface ProjectRealmCache
public void register(MavenProject project, ProjectRealmCache.Key key, ProjectRealmCache.CacheRecord record)
ProjectRealmCache
register
in interface ProjectRealmCache
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–2019 The Apache Software Foundation. All rights reserved.