Class NamespaceAwareStore
java.lang.Object
org.junit.jupiter.engine.execution.NamespaceAwareStore
- All Implemented Interfaces:
org.junit.jupiter.api.extension.ExtensionContext.Store
@API(status=INTERNAL,
since="5.0")
public class NamespaceAwareStore
extends Object
implements org.junit.jupiter.api.extension.ExtensionContext.Store
- Since:
- 5.0
-
Nested Class Summary
Nested classes/interfaces inherited from interface org.junit.jupiter.api.extension.ExtensionContext.Store
org.junit.jupiter.api.extension.ExtensionContext.Store.CloseableResource
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final org.junit.jupiter.api.extension.ExtensionContext.Namespace
private final NamespacedHierarchicalStore
<org.junit.jupiter.api.extension.ExtensionContext.Namespace> -
Constructor Summary
ConstructorsConstructorDescriptionNamespaceAwareStore
(NamespacedHierarchicalStore<org.junit.jupiter.api.extension.ExtensionContext.Namespace> valuesStore, org.junit.jupiter.api.extension.ExtensionContext.Namespace namespace) -
Method Summary
Modifier and TypeMethodDescriptionprivate <T> T
accessStore
(Supplier<T> action) <T> T
<K,
V> Object getOrComputeIfAbsent
(K key, Function<K, V> defaultCreator) <K,
V> V getOrComputeIfAbsent
(K key, Function<K, V> defaultCreator, Class<V> requiredType) void
<T> T
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface org.junit.jupiter.api.extension.ExtensionContext.Store
getOrComputeIfAbsent, getOrDefault
-
Field Details
-
valuesStore
private final NamespacedHierarchicalStore<org.junit.jupiter.api.extension.ExtensionContext.Namespace> valuesStore -
namespace
private final org.junit.jupiter.api.extension.ExtensionContext.Namespace namespace
-
-
Constructor Details
-
NamespaceAwareStore
public NamespaceAwareStore(NamespacedHierarchicalStore<org.junit.jupiter.api.extension.ExtensionContext.Namespace> valuesStore, org.junit.jupiter.api.extension.ExtensionContext.Namespace namespace)
-
-
Method Details
-
get
- Specified by:
get
in interfaceorg.junit.jupiter.api.extension.ExtensionContext.Store
-
get
- Specified by:
get
in interfaceorg.junit.jupiter.api.extension.ExtensionContext.Store
-
getOrComputeIfAbsent
- Specified by:
getOrComputeIfAbsent
in interfaceorg.junit.jupiter.api.extension.ExtensionContext.Store
-
getOrComputeIfAbsent
- Specified by:
getOrComputeIfAbsent
in interfaceorg.junit.jupiter.api.extension.ExtensionContext.Store
-
put
- Specified by:
put
in interfaceorg.junit.jupiter.api.extension.ExtensionContext.Store
-
remove
- Specified by:
remove
in interfaceorg.junit.jupiter.api.extension.ExtensionContext.Store
-
remove
- Specified by:
remove
in interfaceorg.junit.jupiter.api.extension.ExtensionContext.Store
-
accessStore
-