Save This Page
Home » cactus-1.8.0-src » org.apache.cactus.integration.ant.container » [javadoc | source]
org.apache.cactus.integration.ant.container
public interface: Container [javadoc | source]

All Known Implementing Classes:
    AbstractResinContainer, AbstractContainer, Resin3xContainer, WebLogic7xContainer, Tomcat5xContainer, Tomcat3xContainer, AbstractOrionContainer, JBoss3xContainer, MockContainer, AbstractCatalinaContainer, AbstractJavaContainer, AbstractTomcatContainer, Orion2xContainer, Tomcat4xContainer, Orion1xContainer, Resin2xContainer

Interface for classes that can be used as nested elements in the <containers> element of the <cactus> task.
Method from org.apache.cactus.integration.ant.container.Container Summary:
getBaseURL,   getContainerClasspath,   getName,   getPort,   getProtocol,   getServer,   getStartUpWait,   getSystemProperties,   getTestContext,   getToDir,   init,   isEnabled,   isExcluded,   setAntTaskFactory,   setContainerClasspath,   setDeployableFile,   setLog,   setSystemProperties,   shutDown,   startUp
Method from org.apache.cactus.integration.ant.container.Container Detail:
 public String getBaseURL()
 public Path getContainerClasspath()
 public String getName()
    Returns a displayable name of the container for logging purposes.
 public int getPort()
    Returns the port to which the container should listen.
 public String getProtocol()
    Returns the protocol, that should be used for communication to the container.
 public String getServer()
    Returns the server (name or IP) to where the container is living.
 public long getStartUpWait()
 public Variable[] getSystemProperties()
 public String getTestContext()
 public File getToDir()
    Returns the value of the 'todir' attribute.
 public  void init()
    Subclasses should implement this method to perform any initialization that may be necessary. This method is called before any of the accessors or the methods AbstractContainer#startUp and AbstractContainer#shutDown are called, but after all attributes have been set.
 public boolean isEnabled()
    Returns whether the container element is enabled, which is determined by the evaluation of the if- and unless conditions
 public boolean isExcluded(String theTestName)
    Returns whether a specific test case is to be excluded from being run in the container.
 public  void setAntTaskFactory(AntTaskFactory theFactory)
    Sets the factory to use for creating Ant tasks.
 public  void setContainerClasspath(Path theClasspath)
    Sets additional classpath entries that will be added to the container classpath used to start the containers.
 public  void setDeployableFile(DeployableFile theDeployableFile)
    Sets the file that should be deployed to the container. This can be either a WAR or an EAR file, depending on the capabilities of the container.
 public  void setLog(Log theLog)
    Sets the log which the implementation should use.
 public  void setSystemProperties(Variable[] theProperties)
    Sets the system properties that will be passed to the JVM in which the server will execute.
 public  void shutDown()
    Subclasses must implement this method to perform the actual task of shutting down the container.
 public  void startUp()
    Subclasses must implement this method to perform the actual task of starting up the container.