|
|||||||||||
| 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 wrap| Method Detail |
public java.lang.String getName()
Container
getName in interface ContainerContainer.getName()public int getPort()
Container
getPort in interface ContainerContainer.getPort()public java.io.File getToDir()
Container
getToDir in interface ContainerContainer.getToDir()public void init()
ContainerContainer.startUp() and
Container.shutDown() are called, but after all attributes
have been set.
init in interface ContainerContainer.init()public boolean isEnabled()
Container
isEnabled in interface Containertrue if the container is enabledContainer.isEnabled()public boolean isExcluded(java.lang.String theTestName)
Container
isExcluded in interface ContainertheTestName - The fully qualified name of the test fixture class
true if the test should be excluded, otherwise
falseContainer.isExcluded(java.lang.String)public void startUp()
Container
startUp in interface ContainerContainer.startUp()public void shutDown()
Container
shutDown in interface ContainerContainer.shutDown()public void setAntTaskFactory(AntTaskFactory theFactory)
Container
setAntTaskFactory in interface ContainertheFactory - 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 ContainertheLog - The log to setContainer.setLog(org.apache.commons.logging.Log)public void setDeployableFile(java.io.File theWarFile)
Container
setDeployableFile in interface ContainertheWarFile - The file to deployContainer.setDeployableFile(java.io.File)
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||