Class DefaultModelCache
java.lang.Object
org.apache.maven.repository.internal.DefaultModelCache
- All Implemented Interfaces:
ModelCache
A model builder cache backed by the repository system cache.
-
Nested Class Summary
Nested Classes -
Field Summary
Fields -
Constructor Summary
ConstructorsModifierConstructorDescriptionprivate
DefaultModelCache
(org.eclipse.aether.RepositorySystemSession session) -
Method Summary
Modifier and TypeMethodDescriptionGets the specified data from the cache.static ModelCache
newInstance
(org.eclipse.aether.RepositorySystemSession session) void
Puts the specified data into the cache.
-
Field Details
-
session
private final org.eclipse.aether.RepositorySystemSession session -
cache
private final org.eclipse.aether.RepositoryCache cache
-
-
Constructor Details
-
DefaultModelCache
private DefaultModelCache(org.eclipse.aether.RepositorySystemSession session)
-
-
Method Details
-
newInstance
-
get
Description copied from interface:ModelCache
Gets the specified data from the cache.- Specified by:
get
in interfaceModelCache
- Parameters:
groupId
- The group id of the cache record, must not benull
.artifactId
- The artifact id of the cache record, must not benull
.version
- The version of the cache record, must not benull
.tag
- The tag of the cache record, must not benull
.- Returns:
- The requested data or
null
if none was present in the cache.
-
put
Description copied from interface:ModelCache
Puts the specified data into the cache.- Specified by:
put
in interfaceModelCache
- Parameters:
groupId
- The group id of the cache record, must not benull
.artifactId
- The artifact id of the cache record, must not benull
.version
- The version of the cache record, must not benull
.tag
- The tag of the cache record, must not benull
.data
- The data to store in the cache, must not benull
.
-