public interface ModelCache
Modifier and Type | Method and Description |
---|---|
default <T> T |
get(Source path,
org.apache.maven.model.building.ModelCacheTag<T> tag)
Gets the specified data from the cache.
|
default Object |
get(Source path,
String tag)
Gets the specified data from the cache.
|
default <T> T |
get(String groupId,
String artifactId,
String version,
org.apache.maven.model.building.ModelCacheTag<T> 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.
|
default <T> void |
put(Source path,
org.apache.maven.model.building.ModelCacheTag<T> tag,
T data)
Puts the specified data into the cache.
|
default void |
put(Source path,
String tag,
Object data)
Puts the specified data into the cache.
|
default <T> void |
put(String groupId,
String artifactId,
String version,
org.apache.maven.model.building.ModelCacheTag<T> tag,
T 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.
|
default void put(Source path, String tag, Object data)
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
.default Object get(Source path, String tag)
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.void put(String groupId, String artifactId, String version, String tag, Object data)
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
.Object get(String groupId, String artifactId, String version, String tag)
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.default <T> void put(Source path, org.apache.maven.model.building.ModelCacheTag<T> tag, T data)
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
.default <T> T get(Source path, org.apache.maven.model.building.ModelCacheTag<T> tag)
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.default <T> void put(String groupId, String artifactId, String version, org.apache.maven.model.building.ModelCacheTag<T> tag, T data)
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
.default <T> T get(String groupId, String artifactId, String version, org.apache.maven.model.building.ModelCacheTag<T> tag)
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.Copyright © 2001–2022 The Apache Software Foundation. All rights reserved.