@Component(role=ProjectRealmCache.class) public class DefaultProjectRealmCache extends Object implements ProjectRealmCache, 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 ClassRealm> extensionRealms) |
void |
dispose() |
void |
flush() |
ProjectRealmCache.CacheRecord |
get(ProjectRealmCache.Key key) |
ProjectRealmCache.CacheRecord |
put(ProjectRealmCache.Key key,
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 ClassRealm> extensionRealms)
createKey
in interface ProjectRealmCache
public ProjectRealmCache.CacheRecord get(ProjectRealmCache.Key key)
get
in interface ProjectRealmCache
public ProjectRealmCache.CacheRecord put(ProjectRealmCache.Key key, 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 Disposable
Copyright © 2001–2015 The Apache Software Foundation. All rights reserved.