public class DefaultModelCache extends Object implements ModelCache
| Modifier and Type | Method and Description |
|---|---|
protected Object |
get(Object key) |
Object |
get(Source path,
String tag)
Gets the specified data from the cache.
|
Object |
get(String groupId,
String artifactId,
String version,
String tag)
Gets the specified data from the cache.
|
static ModelCache |
newInstance(org.eclipse.aether.RepositorySystemSession session) |
protected void |
put(Object key,
Object data) |
void |
put(Source path,
String tag,
Object data)
Puts the specified data into the cache.
|
void |
put(String groupId,
String artifactId,
String version,
String tag,
Object data)
Puts the specified data into the cache.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitget, get, put, putpublic static ModelCache newInstance(org.eclipse.aether.RepositorySystemSession session)
public Object get(Source path, String tag)
ModelCacheget in interface ModelCachepath - The path of the cache record, must not be null.tag - The tag of the cache record, must not be null.null if none was present in the cache.public void put(Source path, String tag, Object data)
ModelCacheput in interface ModelCachepath - The path of the cache record, must not be null.tag - The tag of the cache record, must not be null.data - The data to store in the cache, must not be null.public Object get(String groupId, String artifactId, String version, String tag)
ModelCacheget in interface ModelCachegroupId - The group id of the cache record, must not be null.artifactId - The artifact id of the cache record, must not be null.version - The version of the cache record, must not be null.tag - The tag of the cache record, must not be null.null if none was present in the cache.public void put(String groupId, String artifactId, String version, String tag, Object data)
ModelCacheput in interface ModelCachegroupId - The group id of the cache record, must not be null.artifactId - The artifact id of the cache record, must not be null.version - The version of the cache record, must not be null.tag - The tag of the cache record, must not be null.data - The data to store in the cache, must not be null.Copyright © 2001–2022 The Apache Software Foundation. All rights reserved.