public static class ExtensionContext.Namespace extends 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 and Description |
---|---|
static ExtensionContext.Namespace |
DEFAULT
The default, global namespace which allows access to stored data from
all extensions.
|
Modifier and Type | Method and Description |
---|---|
static ExtensionContext.Namespace |
create(Object... parts)
Create a namespace which restricts access to data to all extensions
which use the same
parts for creating a namespace. |
boolean |
equals(Object o) |
int |
hashCode() |
public static final ExtensionContext.Namespace DEFAULT
public static ExtensionContext.Namespace create(Object... parts)
parts
for creating a namespace.
The order of the parts
is not significant.
Internally the parts
are compared using Object.equals(Object)
.