Package org.apache.maven.project
Class DefaultProjectRealmCache
java.lang.Object
org.apache.maven.project.DefaultProjectRealmCache
- All Implemented Interfaces:
- ProjectRealmCache,- org.codehaus.plexus.personality.plexus.lifecycle.phase.Disposable
@Named
@Singleton
public class DefaultProjectRealmCache
extends Object
implements ProjectRealmCache, org.codehaus.plexus.personality.plexus.lifecycle.phase.Disposable
Default project realm cache implementation. Assumes cached data does not change.
- 
Nested Class SummaryNested ClassesModifier and TypeClassDescriptionprotected static classCacheKeyNested classes/interfaces inherited from interface org.apache.maven.project.ProjectRealmCacheProjectRealmCache.CacheRecord, ProjectRealmCache.Key
- 
Field SummaryFieldsModifier and TypeFieldDescriptionprotected final Map<ProjectRealmCache.Key,ProjectRealmCache.CacheRecord> 
- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptionvoiddispose()voidflush()get(ProjectRealmCache.Key key) put(ProjectRealmCache.Key key, org.codehaus.plexus.classworlds.realm.ClassRealm projectRealm, org.eclipse.aether.graph.DependencyFilter extensionArtifactFilter) voidregister(MavenProject project, ProjectRealmCache.Key key, ProjectRealmCache.CacheRecord record) Registers the specified cache record for usage with the given project.
- 
Field Details- 
cache
 
- 
- 
Constructor Details- 
DefaultProjectRealmCachepublic DefaultProjectRealmCache()
 
- 
- 
Method Details- 
createKeypublic ProjectRealmCache.Key createKey(List<? extends org.codehaus.plexus.classworlds.realm.ClassRealm> extensionRealms) - Specified by:
- createKeyin interface- ProjectRealmCache
 
- 
get- Specified by:
- getin interface- ProjectRealmCache
 
- 
putpublic ProjectRealmCache.CacheRecord put(ProjectRealmCache.Key key, org.codehaus.plexus.classworlds.realm.ClassRealm projectRealm, org.eclipse.aether.graph.DependencyFilter extensionArtifactFilter) - Specified by:
- putin interface- ProjectRealmCache
 
- 
flushpublic void flush()- Specified by:
- flushin interface- ProjectRealmCache
 
- 
registerpublic void register(MavenProject project, ProjectRealmCache.Key key, ProjectRealmCache.CacheRecord record) Description copied from interface:ProjectRealmCacheRegisters the specified cache record for usage with the given project. Integrators can use the information collected from this method in combination with a custom cache implementation to dispose unused records from the cache.- Specified by:
- registerin interface- ProjectRealmCache
- Parameters:
- 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.
 
- 
disposepublic void dispose()- Specified by:
- disposein interface- org.codehaus.plexus.personality.plexus.lifecycle.phase.Disposable
 
 
-