Package org.codehaus.cargo.generic.deployer

Examples of org.codehaus.cargo.generic.deployer.DefaultDeployerFactory


                    return true;
                }
                ClassLoader cl = getClass().getClassLoader();
                final ConfigurationFactory configFactory = new DefaultConfigurationFactory(cl);
                final ContainerFactory containerFactory = new DefaultContainerFactory(cl);
                final DeployerFactory deployerFactory = new DefaultDeployerFactory(cl);

                Container container = getContainer(configFactory, containerFactory, getContainerId());

                deploy(deployerFactory, listener, container, f, contextPath);
                return true;
View Full Code Here


     */
    public void deployWar(String warPath) throws InterruptedException, MalformedURLException {
        System.out.println("deploying war from " + warPath + " please wait...");
        DeployableFactory deployableFac = new DefaultDeployableFactory();
        WAR war = (WAR) deployableFac.createDeployable(container.getId(), warPath, DeployableType.WAR);
        DeployerFactory deployerFac = new DefaultDeployerFactory();
        Deployer deployer = deployerFac.createDeployer(getContainer(), DeployerType.INSTALLED);
        deployer.deploy(war);
        // verify that application has started before exiting method
        int cycles = 0;
        int increment = 5;
        while (true) {
View Full Code Here

        }
    }

    private Deployer deployer() throws CargoConfigurationException {
        try {
            return new DefaultDeployerFactory().createDeployer(container());
        } catch (RuntimeException ex) {
            throw newException("deployer", ex);
        }
    }
View Full Code Here

TOP

Related Classes of org.codehaus.cargo.generic.deployer.DefaultDeployerFactory

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.