org.apache.cactus.eclipse.runner.containers
Interface IContainerProvider

All Known Implementing Classes:
AntContainerProvider

public interface IContainerProvider

Interface for container configuration and startup.

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

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 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.
 

Method Detail

start

void start(ContainerInfo theContainerInfo,
           org.eclipse.core.runtime.IProgressMonitor thePM)
           throws org.eclipse.core.runtime.CoreException
Starts the container.

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

deploy

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

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

undeploy

void undeploy(java.lang.String theContextPath,
              Credential theCredentials,
              org.eclipse.core.runtime.IProgressMonitor thePM)
              throws org.eclipse.core.runtime.CoreException
UnDeploy a webapp to the container.

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

stop

void stop(ContainerInfo theContainerInfo,
          org.eclipse.core.runtime.IProgressMonitor thePM)
          throws org.eclipse.core.runtime.CoreException
Stops the container.

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


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