public enum Scopes extends Enum<Scopes>
Scopes to avoid a runtime dependency on the annotations module.| Enum Constant and Description |
|---|
GLOBAL
A single instance of the component is shared by all the caches.
|
NAMED_CACHE
Every cache uses a separate instance of the component.
|
NONE
The component is not cached between requests, but a subclass may be either
GLOBAL or NAMED_CACHE. |
| Modifier and Type | Method and Description |
|---|---|
static Scopes |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static Scopes[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final Scopes GLOBAL
public static final Scopes NAMED_CACHE
public static final Scopes NONE
GLOBAL or NAMED_CACHE.public static Scopes[] values()
for (Scopes c : Scopes.values()) System.out.println(c);
public static Scopes valueOf(String name)
name - the name of the enum constant to be returned.IllegalArgumentException - if this enum type has no constant with the specified nameNullPointerException - if the argument is nullCopyright © 2022 JBoss by Red Hat. All rights reserved.