|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD | |||||||||
java.lang.Objectjava.lang.Enum<Privilizer.Policy>
org.apache.commons.privilizer.weave.Privilizer.Policy
public static enum Privilizer.Policy
Weaving policy: when to use PrivilegedActions.
| Enum Constant Summary | |
|---|---|
ALWAYS
Weaves such that Privileged methods are always executed as
such. |
|
DYNAMIC
Weaves such that the check for an active SecurityManager is
done for each Privileged method execution. |
|
NEVER
Disables weaving. |
|
ON_INIT
Weaves such that the check for an active SecurityManager is
done once only. |
|
| Method Summary | |
|---|---|
static Privilizer.Policy |
valueOf(String name)
Returns the enum constant of this type with the specified name. |
static Privilizer.Policy[] |
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 Privilizer.Policy NEVER
public static final Privilizer.Policy ON_INIT
SecurityManager is
done once only.
public static final Privilizer.Policy DYNAMIC
SecurityManager is
done for each Privileged method execution.
public static final Privilizer.Policy ALWAYS
Privileged methods are always executed as
such.
| Method Detail |
|---|
public static Privilizer.Policy[] values()
for (Privilizer.Policy c : Privilizer.Policy.values()) System.out.println(c);
public static Privilizer.Policy valueOf(String name)
name - the name of the enum constant to be returned.
IllegalArgumentException - if this enum type has no constant
with the specified name
NullPointerException - if the argument is null
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD | |||||||||