public enum Scopes extends Enum<Scopes>
NAMED_CACHE
scope.Scope
Enum Constant and Description |
---|
GLOBAL
Components bounded to this scope can only be created by a
DefaultCacheManager and exist in
the DefaultCacheManager 's ComponentRegistry . |
NAMED_CACHE
Components bounded to this scope can only be created by a
Cache and exist in the Cache 's ComponentRegistry . |
Modifier and Type | Method and Description |
---|---|
static Scopes |
getDefaultScope() |
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
DefaultCacheManager
and exist in
the DefaultCacheManager
's ComponentRegistry
.public static final Scopes NAMED_CACHE
Cache
and exist in the Cache
's ComponentRegistry
.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 nullpublic static Scopes getDefaultScope()
Copyright © 2012 JBoss by Red Hat. All Rights Reserved.