public enum EScope extends Enum<EScope>
| Enum Constant and Description |
|---|
APPLICATION
The application scope.
|
GLOBAL
The global scope.
|
REQUEST
The request scope.
|
SESSION
The session scope
|
SESSION_APPLICATION
The session application scope
|
| Modifier and Type | Method and Description |
|---|---|
IScope |
getScope() |
IScope |
getScope(boolean bCreateIfNotExisting) |
static IScope |
getScope(EScope eScope,
boolean bCreateIfNotExisting)
Resolve the currently matching scope of the given
EScope value. |
static EScope |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static EScope[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final EScope GLOBAL
public static final EScope APPLICATION
public static final EScope SESSION
public static final EScope SESSION_APPLICATION
public static final EScope REQUEST
public static EScope[] values()
for (EScope c : EScope.values()) System.out.println(c);
public static EScope 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 null@Nullable public static IScope getScope(@Nonnull EScope eScope, boolean bCreateIfNotExisting)
EScope value.eScope - The scope to resolve to a real scope.bCreateIfNotExisting - if false and the scope is not existing,
null will be returned. This parameter is only used in
application scopes.IScope or null if
bCreateIfNotExisting is false and no scope is presentIllegalArgumentException - If an illegal enumeration value is passed.Copyright © 2014–2015 Philip Helger. All rights reserved.