|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD |
java.lang.Objectjava.lang.Enum<Restore>
org.unitils.inject.util.Restore
public enum Restore
The type of accessing properties: by field or by setter. If default is chosen, the property access type is defined in the Unitils configuration file.
Enum Constant Summary | |
---|---|
DEFAULT
OLD_VALUE, NO_RESTORE or NULL_VALUE as defined by the default value in the configuration. |
|
NO_RESTORE
Leave the injected field |
|
NULL_OR_0_VALUE
Set the injected field to the null or 0 value |
|
OLD_VALUE
Reset the injected field back to its original value |
Method Summary | |
---|---|
static Restore |
valueOf(String name)
Returns the enum constant of this type with the specified name. |
static Restore[] |
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 Restore DEFAULT
public static final Restore OLD_VALUE
public static final Restore NO_RESTORE
public static final Restore NULL_OR_0_VALUE
Method Detail |
---|
public static Restore[] values()
for (Restore c : Restore.values()) System.out.println(c);
public static Restore 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 |