class DefaultModelCache extends java.lang.Object implements ModelCache
Modifier and Type | Class and Description |
---|---|
(package private) static class |
DefaultModelCache.Key |
Modifier and Type | Field and Description |
---|---|
private org.eclipse.aether.RepositoryCache |
cache |
private org.eclipse.aether.RepositorySystemSession |
session |
Modifier | Constructor and Description |
---|---|
private |
DefaultModelCache(org.eclipse.aether.RepositorySystemSession session) |
Modifier and Type | Method and Description |
---|---|
java.lang.Object |
get(java.lang.String groupId,
java.lang.String artifactId,
java.lang.String version,
java.lang.String tag)
Gets the specified data from the cache.
|
static ModelCache |
newInstance(org.eclipse.aether.RepositorySystemSession session) |
void |
put(java.lang.String groupId,
java.lang.String artifactId,
java.lang.String version,
java.lang.String tag,
java.lang.Object data)
Puts the specified data into the cache.
|
private final org.eclipse.aether.RepositorySystemSession session
private final org.eclipse.aether.RepositoryCache cache
private DefaultModelCache(org.eclipse.aether.RepositorySystemSession session)
public static ModelCache newInstance(org.eclipse.aether.RepositorySystemSession session)
public java.lang.Object get(java.lang.String groupId, java.lang.String artifactId, java.lang.String version, java.lang.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(java.lang.String groupId, java.lang.String artifactId, java.lang.String version, java.lang.String tag, java.lang.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
.