Class DefaultModelCache
java.lang.Object
org.apache.maven.internal.impl.model.DefaultModelCache
- All Implemented Interfaces:
ModelCache
A model builder cache backed by the repository system cache.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescription(package private) static class
(package private) static class
private static final class
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
clear()
protected Object
computeIfAbsent
(Object key, Supplier<?> data) <T> T
<T> T
computeIfAbsent
(Source path, String tag, Supplier<T> data) (package private) static <T extends Throwable>
void
-
Field Details
-
cache
-
-
Constructor Details
-
DefaultModelCache
public DefaultModelCache() -
DefaultModelCache
-
-
Method Details
-
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
-
clear
public void clear()- Specified by:
clear
in interfaceModelCache
-
computeIfAbsent
-
uncheckedThrow
- Throws:
T
-