public enum BeanMode extends java.lang.Enum<BeanMode>
Configuration
object.Configuration
Enum Constant and Description |
---|
BACKED
This
BeanMode is used when "backed" beans are required. |
SIMPLE
Deprecated.
Use
BACKED . |
Modifier and Type | Method and Description |
---|---|
static BeanMode |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static BeanMode[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final BeanMode SIMPLE
BACKED
.BeanMode
is used when "simple" beans are required. These
are beans that contain the values itself and are not backed by a
RegistryObject
.public static final BeanMode BACKED
BeanMode
is used when "backed" beans are required.
These are beans that contain reference to the corresponding
RegistryObject
and update its state when their state
changes. This has several advantages like locking, lazy loading etc.public static BeanMode[] values()
for (BeanMode c : BeanMode.values()) System.out.println(c);
public static BeanMode 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 null