Package org.jdesktop.wonderland.runner

Examples of org.jdesktop.wonderland.runner.DeploymentManager


                              HttpServletResponse response,
                              Runner runner,
                              DeploymentEntry de)
        throws ServletException, IOException
    {
        DeploymentManager dm = DeploymentManager.getInstance();
        DeploymentPlan dp = dm.getPlan();
       
        // if any property is the same as the default property,
        // remove it so it will change as the default changes
        for (String propName : de.getProperties().stringPropertyNames()) {
            String runVal = de.getProperties().getProperty(propName);
            String defVal = runner.getDefaultProperties().getProperty(propName);

            if (runVal.equals(defVal)) {
                de.getProperties().remove(propName);
            }
        }

        // replace the existing entry with the new one
        dp.removeEntry(de);
        dp.addEntry(de);
        dm.savePlan();
       
        redirectToRun(response);
    }
View Full Code Here


     */
    protected DeploymentPlan getSessionDeploymentPlan(HttpServletRequest request) {
        HttpSession session = request.getSession();
        DeploymentPlan dp = (DeploymentPlan) session.getAttribute(DEPLOYMENT_PLAN_SESSION_KEY);
        if (dp == null) {
            DeploymentManager dm = DeploymentManager.getInstance();
            dp = dm.getPlan().clone();
            session.setAttribute(DEPLOYMENT_PLAN_SESSION_KEY, dp);
        }

        return dp;
    }
View Full Code Here

TOP

Related Classes of org.jdesktop.wonderland.runner.DeploymentManager

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.