public static class ExtensionContext.Namespace
extends java.lang.Object
Namespace
is used to provide a scope for data saved by
extensions within a ExtensionContext.Store
.
Storing data in custom namespaces allows extensions to avoid accidentally mixing data between extensions or across different invocations within the lifecycle of a single extension.
Modifier and Type | Field | Description |
---|---|---|
static ExtensionContext.Namespace |
GLOBAL |
The default, global namespace which allows access to stored data from
all extensions.
|
Modifier and Type | Method | Description |
---|---|---|
static ExtensionContext.Namespace |
create(java.lang.Object... parts) |
Create a namespace which restricts access to data to all extensions
which use the same sequence of
parts for creating a namespace. |
boolean |
equals(java.lang.Object o) |
|
int |
hashCode() |
public static final ExtensionContext.Namespace GLOBAL
public static ExtensionContext.Namespace create(java.lang.Object... parts)
parts
for creating a namespace.
The order of the parts
is significant.
Internally the parts
are compared using Object.equals(Object)
.
public boolean equals(java.lang.Object o)
equals
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object