org.apache.cactus.integration.ant.container.resin
Class AbstractResinContainer

java.lang.Object
  extended byorg.apache.tools.ant.ProjectComponent
      extended byorg.apache.cactus.integration.ant.container.AbstractContainer
          extended byorg.apache.cactus.integration.ant.container.AbstractJavaContainer
              extended byorg.apache.cactus.integration.ant.container.resin.AbstractResinContainer
All Implemented Interfaces:
Container
Direct Known Subclasses:
Resin2xContainer, Resin3xContainer

public abstract class AbstractResinContainer
extends AbstractJavaContainer

Common support for all Resin container versions.

Version:
$Id: AbstractResinContainer.java,v 1.6 2004/05/31 20:05:22 vmassol Exp $

Constructor Summary
AbstractResinContainer()
           
 
Method Summary
 int getPort()
          Returns the port to which the container should listen.
 void init()
          The default implementation does nothing.
 void setDir(java.io.File theDir)
          Sets the Resin installation directory.
 void setPort(int thePort)
          Sets the port to which the container should listen.
 void setResinConf(java.io.File theResinConf)
          Sets the configuration file to use for the test installation of Resin
 void setTmpDir(java.io.File theTmpDir)
          Sets the temporary directory from which the container is run.
 void shutDown()
          Subclasses must implement this method to perform the actual task of shutting down the container.
 void startUp()
          Subclasses must implement this method to perform the actual task of starting up the container.
 void verify()
          Checks if all mandatory properties have been set and that they contain valid values.
 
Methods inherited from class org.apache.cactus.integration.ant.container.AbstractJavaContainer
setAppend, setJVMArgs, setOutput
 
Methods inherited from class org.apache.cactus.integration.ant.container.AbstractContainer
createExclude, getBaseURL, getContainerClasspath, getExcludePatterns, getProtocol, getServer, getStartUpWait, getSystemProperties, getTestContext, getToDir, isEnabled, isExcluded, setAntTaskFactory, setContainerClasspath, setDeployableFile, setIf, setLog, setProtocol, setServer, setStartUpWait, setSystemProperties, setToDir, setUnless
 
Methods inherited from class org.apache.tools.ant.ProjectComponent
getProject, log, log, setProject
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.apache.cactus.integration.ant.container.Container
getName
 

Constructor Detail

AbstractResinContainer

public AbstractResinContainer()
Method Detail

setDir

public final void setDir(java.io.File theDir)
Sets the Resin installation directory.

Parameters:
theDir - The directory to set

setTmpDir

public final void setTmpDir(java.io.File theTmpDir)
Sets the temporary directory from which the container is run.

Parameters:
theTmpDir - The temporary directory to set

setResinConf

public final void setResinConf(java.io.File theResinConf)
Sets the configuration file to use for the test installation of Resin

Parameters:
theResinConf - The resin.conf file

setPort

public final void setPort(int thePort)
Sets the port to which the container should listen.

Parameters:
thePort - The port to set

verify

public void verify()
Checks if all mandatory properties have been set and that they contain valid values.


getPort

public final int getPort()
Returns the port to which the container should listen.

Returns:
The port

init

public final void init()
Description copied from class: AbstractContainer
The default implementation does nothing.

Specified by:
init in interface Container
Overrides:
init in class AbstractContainer
See Also:
Container.init()

startUp

public final void startUp()
Description copied from interface: Container
Subclasses must implement this method to perform the actual task of starting up the container.

See Also:
Container.startUp()

shutDown

public final void shutDown()
Description copied from interface: Container
Subclasses must implement this method to perform the actual task of shutting down the container.

See Also:
Container.shutDown()


Copyright © 2000-2004 Apache Software Foundation. All Rights Reserved.