Class DefaultModelCache
java.lang.Object
org.apache.maven.internal.impl.resolver.DefaultModelCache
- All Implemented Interfaces:
ModelCache
A model builder cache backed by the repository system cache.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprotected Object
computeIfAbsent
(Object key, Supplier<?> data) <T> T
<T> T
computeIfAbsent
(Source path, String tag, Supplier<T> data) static ModelCache
newInstance
(org.eclipse.aether.RepositorySystemSession session, boolean anew)
-
Constructor Details
-
DefaultModelCache
public DefaultModelCache()
-
-
Method Details
-
newInstance
public static ModelCache newInstance(org.eclipse.aether.RepositorySystemSession session, boolean anew) -
computeIfAbsent
public <T> T computeIfAbsent(String groupId, String artifactId, String version, String tag, Supplier<T> data) - Specified by:
computeIfAbsent
in interfaceModelCache
-
computeIfAbsent
- Specified by:
computeIfAbsent
in interfaceModelCache
-
computeIfAbsent
-