Class 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:
    Serialized Form
    • Constructor Detail

      • XStreamPickle

        public XStreamPickle​(Object o)
    • Method Detail

      • rehydrate

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