@Component(role=ExtensionRealmCache.class) public class DefaultExtensionRealmCache extends Object implements ExtensionRealmCache, Disposable
| Modifier and Type | Class and Description |
|---|---|
protected static class |
DefaultExtensionRealmCache.CacheKey |
ExtensionRealmCache.CacheRecord, ExtensionRealmCache.Key| Modifier and Type | Field and Description |
|---|---|
protected Map<ExtensionRealmCache.Key,ExtensionRealmCache.CacheRecord> |
cache |
| Constructor and Description |
|---|
DefaultExtensionRealmCache() |
| Modifier and Type | Method and Description |
|---|---|
ExtensionRealmCache.Key |
createKey(List<? extends org.eclipse.aether.artifact.Artifact> extensionArtifacts) |
void |
dispose() |
void |
flush() |
ExtensionRealmCache.CacheRecord |
get(ExtensionRealmCache.Key key) |
ExtensionRealmCache.CacheRecord |
put(ExtensionRealmCache.Key key,
ClassRealm extensionRealm,
ExtensionDescriptor extensionDescriptor) |
void |
register(MavenProject project,
ExtensionRealmCache.Key key,
ExtensionRealmCache.CacheRecord record)
Registers the specified cache record for usage with the given project.
|
protected final Map<ExtensionRealmCache.Key,ExtensionRealmCache.CacheRecord> cache
public DefaultExtensionRealmCache()
public ExtensionRealmCache.Key createKey(List<? extends org.eclipse.aether.artifact.Artifact> extensionArtifacts)
createKey in interface ExtensionRealmCachepublic ExtensionRealmCache.CacheRecord get(ExtensionRealmCache.Key key)
get in interface ExtensionRealmCachepublic ExtensionRealmCache.CacheRecord put(ExtensionRealmCache.Key key, ClassRealm extensionRealm, ExtensionDescriptor extensionDescriptor)
put in interface ExtensionRealmCachepublic void flush()
flush in interface ExtensionRealmCachepublic void register(MavenProject project, ExtensionRealmCache.Key key, ExtensionRealmCache.CacheRecord record)
ExtensionRealmCacheregister in interface ExtensionRealmCacheproject - The project that employs the plugin realm, must not be null.record - The cache record being used for the project, must not be null.public void dispose()
dispose in interface DisposableCopyright © 2001–2014 The Apache Software Foundation. All rights reserved.