Package org.jenkinsci.plugins.workflow.pickles

Examples of org.jenkinsci.plugins.workflow.pickles.Pickle


                if (o==owner)
                    return new DryOwner();

                if (pickling) {
                    for (PickleFactory f : PickleFactory.all()) {
                        Pickle v = f.writeReplace(o);
                        if (v != null) {
                            pickles.add(v);
                            return new DryCapsule(pickles.size() - 1); // let Pickle be serialized into the stream
                        }
                    }
View Full Code Here


    }

    private static Object perhapsConvertToValue(Object object) {
        // TODO this will not work, since various serializable objects (such as WorkspaceStep.Callback) hold references to objects that should be pickled
        for (PickleFactory f : (valueFactories == null ? PickleFactory.all() : valueFactories)) {
            Pickle v = f.writeReplace(object);
            if (v != null) {
                return v;
            }
        }
        return object;
View Full Code Here

TOP

Related Classes of org.jenkinsci.plugins.workflow.pickles.Pickle

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.