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
Modifier and TypeInterfaceDescriptionstatic class
CacheRecordstatic interface
A cache key. -
Method Summary
Modifier and TypeMethodDescriptionvoid
flush()
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 Details
-
createKey
-
get
-
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
.
-