public enum PersistenceMode extends java.lang.Enum<PersistenceMode>
Configuration
for the application.Enum Constant and Description |
---|
FULL
Maps beans to
RegistryObject instances and persists them to the
registry. |
MAP_ONLY
The
BeanPool will only map the beans to RegistryObject instances
and will not send any data to the registry. |
Modifier and Type | Method and Description |
---|---|
static PersistenceMode |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static PersistenceMode[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final PersistenceMode FULL
RegistryObject
instances and persists them to the
registry.public static final PersistenceMode MAP_ONLY
BeanPool
will only map the beans to RegistryObject
instances
and will not send any data to the registry. This mode is useful when you have
other framework taking care of the persistence of the
RegistryObject
instances.public static PersistenceMode[] values()
for (PersistenceMode c : PersistenceMode.values()) System.out.println(c);
public static PersistenceMode 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