Package org.apache.maven.plugin
Class DefaultExtensionRealmCache
java.lang.Object
org.apache.maven.plugin.DefaultExtensionRealmCache
- All Implemented Interfaces:
- ExtensionRealmCache,- org.codehaus.plexus.personality.plexus.lifecycle.phase.Disposable
@Component(role=ExtensionRealmCache.class)
public class DefaultExtensionRealmCache
extends Object
implements ExtensionRealmCache, org.codehaus.plexus.personality.plexus.lifecycle.phase.Disposable
Default extension 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.plugin.ExtensionRealmCacheExtensionRealmCache.CacheRecord, ExtensionRealmCache.Key
- 
Field SummaryFieldsModifier and TypeFieldDescriptionprotected final Map<ExtensionRealmCache.Key, ExtensionRealmCache.CacheRecord> 
- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptionvoiddispose()voidflush()put(ExtensionRealmCache.Key key, org.codehaus.plexus.classworlds.realm.ClassRealm extensionRealm, ExtensionDescriptor extensionDescriptor, List<Artifact> artifacts) voidregister(MavenProject project, ExtensionRealmCache.Key key, ExtensionRealmCache.CacheRecord record) Registers the specified cache record for usage with the given project.
- 
Field Details- 
cache
 
- 
- 
Constructor Details- 
DefaultExtensionRealmCachepublic DefaultExtensionRealmCache()
 
- 
- 
Method Details- 
createKey- Specified by:
- createKeyin interface- ExtensionRealmCache
 
- 
get- Specified by:
- getin interface- ExtensionRealmCache
 
- 
putpublic ExtensionRealmCache.CacheRecord put(ExtensionRealmCache.Key key, org.codehaus.plexus.classworlds.realm.ClassRealm extensionRealm, ExtensionDescriptor extensionDescriptor, List<Artifact> artifacts) - Specified by:
- putin interface- ExtensionRealmCache
 
- 
flushpublic void flush()- Specified by:
- flushin interface- ExtensionRealmCache
 
- 
registerpublic void register(MavenProject project, ExtensionRealmCache.Key key, ExtensionRealmCache.CacheRecord record) Description copied from interface:ExtensionRealmCacheRegisters 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- ExtensionRealmCache
- 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
 
 
-