@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 |
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 DefaultProjectRealmCache()
public ProjectRealmCache.Key createKey(List<? extends org.codehaus.plexus.classworlds.realm.ClassRealm> extensionRealms)
createKey in interface ProjectRealmCachepublic ProjectRealmCache.CacheRecord get(ProjectRealmCache.Key key)
get in interface ProjectRealmCachepublic ProjectRealmCache.CacheRecord put(ProjectRealmCache.Key key, org.codehaus.plexus.classworlds.realm.ClassRealm projectRealm, org.eclipse.aether.graph.DependencyFilter extensionArtifactFilter)
put in interface ProjectRealmCachepublic void flush()
flush in interface ProjectRealmCachepublic void register(MavenProject project, ProjectRealmCache.Key key, ProjectRealmCache.CacheRecord record)
ProjectRealmCacheregister in interface ProjectRealmCacheproject - 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.