|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Interface for classes that can be used as nested elements in the
<containers>
element of the <cactus>
task.
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 theDeployableFile)
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. |
Method Detail |
public java.lang.String getName()
public int getPort()
public java.io.File getToDir()
public void init()
startUp()
and
shutDown()
are called, but after all attributes
have been set.
public boolean isEnabled()
true
if the container is enabledpublic boolean isExcluded(java.lang.String theTestName)
theTestName
- The fully qualified name of the test fixture class
true
if the test should be excluded, otherwise
false
public void setAntTaskFactory(AntTaskFactory theFactory)
theFactory
- The factory to use for creating Ant taskspublic void setLog(org.apache.commons.logging.Log theLog)
theLog
- The log to setpublic void setDeployableFile(java.io.File theDeployableFile)
theDeployableFile
- The file to deploypublic void startUp()
public void shutDown()
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |