|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.cactus.integration.ant.container.ContainerWrapper
Class that wraps around an implementation of the Container
interface and delegates all calls to the wrapped instance.
Constructor Summary | |
ContainerWrapper(Container theContainer)
Constructor. |
Method Summary | |
java.lang.String |
getName()
Returns a displayable name of the container for logging purposes. |
int |
getPort()
Returns the port to which the container should listen. |
java.io.File |
getToDir()
Returns the value of the 'todir' attribute. |
void |
init()
Subclasses should implement this method to perform any initialization that may be necessary. |
boolean |
isEnabled()
Returns whether the container element is enabled, which is determined by the evaluation of the if- and unless conditions |
boolean |
isExcluded(java.lang.String theTestName)
Returns whether a specific test case is to be excluded from being run in the container. |
void |
setAntTaskFactory(AntTaskFactory theFactory)
Sets the factory to use for creating Ant tasks. |
void |
setDeployableFile(java.io.File theWarFile)
Sets the file that should be deployed to the container. |
void |
setLog(org.apache.commons.logging.Log theLog)
Sets the log which the implementation should use. |
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. |
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public ContainerWrapper(Container theContainer)
theContainer
- The container to wrapMethod Detail |
public java.lang.String getName()
Container
getName
in interface Container
Container.getName()
public int getPort()
Container
getPort
in interface Container
Container.getPort()
public java.io.File getToDir()
Container
getToDir
in interface Container
Container.getToDir()
public void init()
Container
Container.startUp()
and
Container.shutDown()
are called, but after all attributes
have been set.
init
in interface Container
Container.init()
public boolean isEnabled()
Container
isEnabled
in interface Container
true
if the container is enabledContainer.isEnabled()
public boolean isExcluded(java.lang.String theTestName)
Container
isExcluded
in interface Container
theTestName
- The fully qualified name of the test fixture class
true
if the test should be excluded, otherwise
false
Container.isExcluded(java.lang.String)
public void startUp()
Container
startUp
in interface Container
Container.startUp()
public void shutDown()
Container
shutDown
in interface Container
Container.shutDown()
public void setAntTaskFactory(AntTaskFactory theFactory)
Container
setAntTaskFactory
in interface Container
theFactory
- The factory to use for creating Ant tasksContainer.setAntTaskFactory(org.apache.cactus.integration.ant.util.AntTaskFactory)
public void setLog(org.apache.commons.logging.Log theLog)
Container
setLog
in interface Container
theLog
- The log to setContainer.setLog(org.apache.commons.logging.Log)
public void setDeployableFile(java.io.File theWarFile)
Container
setDeployableFile
in interface Container
theWarFile
- The file to deployContainer.setDeployableFile(java.io.File)
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |