@@ -0,0 +1,2437 @@
+/*%0A * ################################################################%0A *%0A * ProActive: The Java(TM) library for Parallel, Distributed,%0A *            Concurrent computing with Security and Mobility%0A *%0A * Copyright (C) 1997-2002 INRIA/University of Nice-Sophia Antipolis%0A * Contact: proactive-support@inria.fr%0A *%0A * This library is free software; you can redistribute it and/or%0A * modify it under the terms of the GNU Lesser General Public%0A * License as published by the Free Software Foundation; either%0A * version 2.1 of the License, or any later version.%0A *%0A * This library is distributed in the hope that it will be useful,%0A * but WITHOUT ANY WARRANTY; without even the implied warranty of%0A * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU%0A * Lesser General Public License for more details.%0A *%0A * You should have received a copy of the GNU Lesser General Public%0A * License along with this library; if not, write to the Free Software%0A * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307%0A * USA%0A *%0A *  Initial developer(s):               The ProActive Team%0A *                        http://www.inria.fr/oasis/ProActive/contacts.html%0A *  Contributor(s):%0A *%0A * ################################################################%0A */%0Apackage org.objectweb.proactive.core.body;%0A%0Aimport java.io.Serializable;%0A%0Aimport org.objectweb.proactive.Body;%0Aimport org.objectweb.proactive.core.body.request.Request;%0A%0A%0A/**%0A * Define an execution context for a thread. A context is associated to a thread.%0A * A context contains the body associated to the thread, and the currently served request (or null if any).%0A * @see org.objectweb.proactive.core.body.LocalBodyStore%0A * @author cdelbe%0A * @since 3.2.1%0A */%0Apublic class Context implements Serializable %7B%0A%0A    /** Body associated to this context */%0A    private final Body body;%0A%0A    /** The currently served request */%0A    private final Request currentRequest;%0A%0A    /**%0A     * Create a new context.%0A     * @param owner%0A     * @param currentRequest%0A     */%0A    public Context(Body owner, Request currentRequest) %7B%0A        this.body = owner;%0A        this.currentRequest = currentRequest;%0A    %7D%0A%0A    /**%0A     * @return the body associated to this context%0A     */%0A    public Body getBody() %7B%0A        return body;%0A    %7D%0A%0A    /**%0A     * @return the currently served request, null if any%0A     */%0A    public Request getCurrentRequest() %7B%0A        return currentRequest;%0A    %7D%0A%7D%0A

Add execution context. This context can be retreived by the method ProActive.getContext(). LocalBodyStore.getCurrentThreadBody() has been replaced by LocalBodyStore.getContext().getBody().