Package org.apache.maven.project
Interface ProjectRealmCache
-
- All Known Implementing Classes:
DefaultProjectRealmCache
public interface ProjectRealmCacheCaches project 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 classProjectRealmCache.CacheRecordCacheRecordstatic interfaceProjectRealmCache.KeyA cache key.
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description ProjectRealmCache.KeycreateKey(java.util.List<? extends org.codehaus.plexus.classworlds.realm.ClassRealm> extensionRealms)voidflush()ProjectRealmCache.CacheRecordget(ProjectRealmCache.Key key)ProjectRealmCache.CacheRecordput(ProjectRealmCache.Key key, org.codehaus.plexus.classworlds.realm.ClassRealm projectRealm, org.eclipse.aether.graph.DependencyFilter extensionArtifactFilter)voidregister(MavenProject project, ProjectRealmCache.Key key, ProjectRealmCache.CacheRecord rcrd)Registers the specified cache record for usage with the given project.
-
-
-
Method Detail
-
createKey
ProjectRealmCache.Key createKey(java.util.List<? extends org.codehaus.plexus.classworlds.realm.ClassRealm> extensionRealms)
-
get
ProjectRealmCache.CacheRecord get(ProjectRealmCache.Key key)
-
put
ProjectRealmCache.CacheRecord put(ProjectRealmCache.Key key, org.codehaus.plexus.classworlds.realm.ClassRealm projectRealm, org.eclipse.aether.graph.DependencyFilter extensionArtifactFilter)
-
flush
void flush()
-
register
void register(MavenProject project, ProjectRealmCache.Key key, ProjectRealmCache.CacheRecord rcrd)
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.rcrd- The cache record being used for the project, must not benull.
-
-