public enum PersistenceContext extends Enum<PersistenceContext>
Enum Constant and Description |
---|
ANYWHERE
A class is a "handle" that can be serialized by anyone into a small object
(via Java serialization or XStream),
and upon deserialization it reconnects itself with other states persisted elsewhere.
|
FLOW_NODE
A class gets persisted through
FlowNode (for example in action) via XStream. |
JOB
A class gets persisted in the
config.xml as a part of
Job through XStream. |
NONE
A class does not get persisted anywhere.
|
PROGRAM
A class gets persisted in program data file
along with all the objects used in the user's CPS transformed program.
|
RUN
A class gets persisted in the
build.xml as a part of
Run through XStream. |
Modifier and Type | Method and Description |
---|---|
static PersistenceContext |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static PersistenceContext[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final PersistenceContext RUN
build.xml
as a part of
Run
through XStream.public static final PersistenceContext JOB
config.xml
as a part of
Job
through XStream.public static final PersistenceContext ANYWHERE
StepContext
public static final PersistenceContext PROGRAM
public static final PersistenceContext FLOW_NODE
FlowNode
(for example in action) via XStream.public static final PersistenceContext NONE
public static PersistenceContext[] values()
for (PersistenceContext c : PersistenceContext.values()) System.out.println(c);
public static PersistenceContext 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 nullCopyright © 2016–2020. All rights reserved.