com.bstek.dorado.core.bean
| Enum Constant and Description |
|---|
instant
瞬间的,即该实例只在瞬间有效,用完即被抛弃。
|
request
Web请求范围的生命周期。
|
session
Web会话范围的生命周期。
|
singleton
单例的,即该实例一旦被创建将在整个JVM的运行周期内有效。
|
thread
对当前线程有效。
|
| Modifier and Type | Method and Description |
|---|---|
static Scope |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static Scope[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final Scope instant
public static final Scope thread
public static final Scope singleton
public static final Scope session
public static final Scope request
public static Scope[] values()
for (Scope c : Scope.values()) System.out.println(c);
public static Scope 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 © 2001-2011 www.BSTEK.com All Rights Reserved.