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, wait
get, get, put, put
public static ModelCache newInstance(org.eclipse.aether.RepositorySystemSession session)
public Object get(Source path, String tag)
ModelCache
get
in interface ModelCache
path
- 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)
ModelCache
put
in interface ModelCache
path
- 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)
ModelCache
get
in interface ModelCache
groupId
- 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)
ModelCache
put
in interface ModelCache
groupId
- 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.