Package org.apache.maven.plugin
Interface ExtensionRealmCache
-
- All Known Implementing Classes:
DefaultExtensionRealmCache
public interface ExtensionRealmCache
Caches extension class realms. Warning: This is an internal utility interface that is only public for technical reasons, it is not part of the public API. In particular, this interface can be changed or deleted without prior notice.- Author:
- Igor Fedorenko, Benjamin Bentmann
-
-
Nested Class Summary
Nested Classes Modifier and Type Interface Description static class
ExtensionRealmCache.CacheRecord
CacheRecordstatic interface
ExtensionRealmCache.Key
A cache key.
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description ExtensionRealmCache.Key
createKey(List<Artifact> extensionArtifacts)
void
flush()
ExtensionRealmCache.CacheRecord
get(ExtensionRealmCache.Key key)
ExtensionRealmCache.CacheRecord
put(ExtensionRealmCache.Key key, org.codehaus.plexus.classworlds.realm.ClassRealm extensionRealm, ExtensionDescriptor extensionDescriptor, List<Artifact> artifacts)
void
register(MavenProject project, ExtensionRealmCache.Key key, ExtensionRealmCache.CacheRecord record)
Registers the specified cache record for usage with the given project.
-
-
-
Method Detail
-
createKey
ExtensionRealmCache.Key createKey(List<Artifact> extensionArtifacts)
-
get
ExtensionRealmCache.CacheRecord get(ExtensionRealmCache.Key key)
-
put
ExtensionRealmCache.CacheRecord put(ExtensionRealmCache.Key key, org.codehaus.plexus.classworlds.realm.ClassRealm extensionRealm, ExtensionDescriptor extensionDescriptor, List<Artifact> artifacts)
-
flush
void flush()
-
register
void register(MavenProject project, ExtensionRealmCache.Key key, ExtensionRealmCache.CacheRecord record)
Registers 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.- Parameters:
project
- The project that employs the plugin realm, must not benull
.record
- The cache record being used for the project, must not benull
.
-
-