Enum PersistenceContext
java.lang.Object
java.lang.Enum<PersistenceContext>
org.jenkinsci.plugins.workflow.cps.persistence.PersistenceContext
- All Implemented Interfaces:
Serializable
,Comparable<PersistenceContext>
- Author:
- Kohsuke Kawaguchi
-
Enum Constant Summary
Enum ConstantDescriptionA 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.A class gets persisted throughFlowNode
(for example in action) via XStream.A class gets persisted in theconfig.xml
as a part ofJob
through XStream.A class does not get persisted anywhere.A class gets persisted in program data file along with all the objects used in the user's CPS transformed program.A class gets persisted in thebuild.xml
as a part ofRun
through XStream. -
Method Summary
Modifier and TypeMethodDescriptionstatic PersistenceContext
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.
-
Enum Constant Details
-
RUN
A class gets persisted in thebuild.xml
as a part ofRun
through XStream. -
JOB
A class gets persisted in theconfig.xml
as a part ofJob
through XStream. -
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.- See Also:
-
StepContext
-
PROGRAM
A class gets persisted in program data file along with all the objects used in the user's CPS transformed program. The persistence is through JBoss river protocol, which is a variant of Java serialization. -
FLOW_NODE
A class gets persisted throughFlowNode
(for example in action) via XStream. -
NONE
A class does not get persisted anywhere. It's only used in memory.
-
-
Method Details
-
values
Returns an array containing the constants of this enum type, in the order they are declared.- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)- Parameters:
name
- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is null
-