org.apache.cactus.eclipse.runner.containers.ant
Class AntContainerProvider

java.lang.Object
  extended by org.apache.cactus.eclipse.runner.containers.ant.AntContainerProvider
All Implemented Interfaces:
IContainerProvider

public class AntContainerProvider
extends java.lang.Object
implements IContainerProvider

Implementation of IContainerProvider that uses ant scripts to set up and launch containers.

Version:
$Id: AntContainerProvider.java 238816 2004-02-29 16:36:46Z vmassol $

Constructor Summary
AntContainerProvider(AntContainerManager theManager, java.lang.String theTargetMask, java.lang.String theHome)
           
 
Method Summary
 void deploy(java.lang.String theContextPath, java.net.URL theDeployableObject, Credential theCredentials, org.eclipse.core.runtime.IProgressMonitor thePM)
          Deploy a webapp to the container.
 void setEclipseRunner(EclipseRunTests theEclipseRunner)
           
 void start(ContainerInfo theContainerInfo, org.eclipse.core.runtime.IProgressMonitor thePM)
          Starts the container.
 void stop(ContainerInfo theContainerInfo, org.eclipse.core.runtime.IProgressMonitor thePM)
          Stops the container.
 void undeploy(java.lang.String theContextPath, Credential theCredentials, org.eclipse.core.runtime.IProgressMonitor thePM)
          UnDeploy a webapp to the container.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AntContainerProvider

public AntContainerProvider(AntContainerManager theManager,
                            java.lang.String theTargetMask,
                            java.lang.String theHome)
Parameters:
theManager - the manager of this provider
theTargetMask - target mask for this provider
theHome - home directory for this provider's container
Method Detail

deploy

public void deploy(java.lang.String theContextPath,
                   java.net.URL theDeployableObject,
                   Credential theCredentials,
                   org.eclipse.core.runtime.IProgressMonitor thePM)
            throws org.eclipse.core.runtime.CoreException
Description copied from interface: IContainerProvider
Deploy a webapp to the container.

Specified by:
deploy in interface IContainerProvider
Parameters:
theContextPath - path to the webapp (for example "test")
theDeployableObject - war file to be deployed
theCredentials - credentials for deployment (user:pwd)
thePM - the monitor that reflects progress made while deploying
Throws:
org.eclipse.core.runtime.CoreException - when deployment fails
See Also:
IContainerProvider#deploy(String, URL, Credential)

start

public void start(ContainerInfo theContainerInfo,
                  org.eclipse.core.runtime.IProgressMonitor thePM)
           throws org.eclipse.core.runtime.CoreException
Description copied from interface: IContainerProvider
Starts the container.

Specified by:
start in interface IContainerProvider
Parameters:
theContainerInfo - detail of the container configuration
thePM - the monitor that reflects progress made while starting
Throws:
org.eclipse.core.runtime.CoreException - when starting fails
See Also:
IContainerProvider#start(ContainerInfo)

stop

public void stop(ContainerInfo theContainerInfo,
                 org.eclipse.core.runtime.IProgressMonitor thePM)
          throws org.eclipse.core.runtime.CoreException
Description copied from interface: IContainerProvider
Stops the container.

Specified by:
stop in interface IContainerProvider
Parameters:
theContainerInfo - detail of the container configuration
thePM - the monitor that reflects progress made while stopping
Throws:
org.eclipse.core.runtime.CoreException - when stopping fails
See Also:
IContainerProvider#stop(ContainerInfo)

undeploy

public void undeploy(java.lang.String theContextPath,
                     Credential theCredentials,
                     org.eclipse.core.runtime.IProgressMonitor thePM)
              throws org.eclipse.core.runtime.CoreException
Description copied from interface: IContainerProvider
UnDeploy a webapp to the container.

Specified by:
undeploy in interface IContainerProvider
Parameters:
theContextPath - path to the webapp
theCredentials - credentials for undeployment (user:pwd)
thePM - the monitor that reflects progress made while undeploying
Throws:
org.eclipse.core.runtime.CoreException - when undeployment fails
See Also:
(String, Credential)

setEclipseRunner

public void setEclipseRunner(EclipseRunTests theEclipseRunner)
Parameters:
theEclipseRunner - The EclipseRunTests instance to associate with this container provider, which will be notified of test run end


Copyright © 2001-2009 The Apache Software Foundation. All Rights Reserved.