public enum ComponentScope extends java.lang.Enum<ComponentScope>
Enum Constant and Description |
---|
PerRequest
Declares that the scope of the component is per request whose instance
is valid for the scope of the current HTTP request and response.
|
Singleton
Declares the scope of the component is a singleton whose instance
is valid for the scope of the running application.
|
Undefined
Declares that the scope of the component is undefined.
|
Modifier and Type | Field and Description |
---|---|
static java.util.List<ComponentScope> |
PERREQUEST_UNDEFINED
A immutable list comprising of the scopes PerRequest and
Undefined, in that order.
|
static java.util.List<ComponentScope> |
PERREQUEST_UNDEFINED_SINGLETON
A immutable list comprising of the scopes PerRequest, Undefined and
Singleton, in that order.
|
static java.util.List<ComponentScope> |
UNDEFINED_SINGLETON
A immutable list comprising of the scopes Undefined and
Singleton, in that order.
|
Modifier and Type | Method and Description |
---|---|
static ComponentScope |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static ComponentScope[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final ComponentScope Singleton
public static final ComponentScope PerRequest
public static final ComponentScope Undefined
public static final java.util.List<ComponentScope> UNDEFINED_SINGLETON
public static final java.util.List<ComponentScope> PERREQUEST_UNDEFINED_SINGLETON
public static final java.util.List<ComponentScope> PERREQUEST_UNDEFINED
public static ComponentScope[] values()
for (ComponentScope c : ComponentScope.values()) System.out.println(c);
public static ComponentScope valueOf(java.lang.String name)
name
- the name of the enum constant to be returned.java.lang.IllegalArgumentException
- if this enum type has no constant with the specified namejava.lang.NullPointerException
- if the argument is nullCopyright © 2016 Oracle Corporation. All Rights Reserved.