|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD |
java.lang.Object java.lang.Enum<ComponentScope> com.sun.jersey.core.spi.component.ComponentScope
public enum ComponentScope
The scope contract for a component.
Enum Constant Summary | |
---|---|
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. |
Field Summary | |
---|---|
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. |
Method Summary | |
---|---|
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. |
Methods inherited from class java.lang.Enum |
---|
clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf |
Methods inherited from class java.lang.Object |
---|
getClass, notify, notifyAll, wait, wait, wait |
Enum Constant Detail |
---|
public static final ComponentScope Singleton
public static final ComponentScope PerRequest
public static final ComponentScope Undefined
Field Detail |
---|
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
Method Detail |
---|
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 name
java.lang.NullPointerException
- if the argument is null
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD |