Class XStreamPickle

java.lang.Object
org.jenkinsci.plugins.workflow.pickles.Pickle
org.jenkinsci.plugins.workflow.support.pickles.XStreamPickle
All Implemented Interfaces:
Serializable

public final class XStreamPickle extends org.jenkinsci.plugins.workflow.pickles.Pickle
A way of pickling Jenkins objects which have a well-defined XStream representation but are not Serializable. Can also be used for objects which are Serializable but mistakenly so. For any such type you wish to save, create a SingleTypedPickleFactory returning this pickle.

Uses Items.XSTREAM2 so suitable for things normally kept in job configuration.

Note that the object ought to be self-contained and require no initialization, so do not use this for anything with an onLoad or setOwner method, etc.

See Also:
  • Constructor Details

    • XStreamPickle

      public XStreamPickle(Object o)
  • Method Details

    • rehydrate

      public com.google.common.util.concurrent.ListenableFuture<?> rehydrate()
      Overrides:
      rehydrate in class org.jenkinsci.plugins.workflow.pickles.Pickle