org.apache.cactus.container
Class ContainerWrapper

java.lang.Object
  extended by org.apache.cactus.container.ContainerWrapper
Direct Known Subclasses:
GenericContainer

public class ContainerWrapper
extends java.lang.Object

Class that wraps around an implementation of the Container interface and delegates all calls to the wrapped instance.

Version:
$Id: ContainerWrapper.java 239130 2005-01-29 15:49:18Z vmassol $

Constructor Summary
ContainerWrapper()
          The default constructor.
ContainerWrapper(org.codehaus.cargo.container.Container theContainer)
          Constructor.
 
Method Summary
 java.lang.String getBaseURL()
          
 java.lang.String[] getContainerClasspath()
          
 java.lang.String getName()
          
 int getPort()
          
 java.lang.String getProtocol()
          
 java.lang.String getServer()
          
 long getStartUpWait()
          
 java.lang.String getTestContext()
          
 java.io.File getToDir()
          
 void init()
          
 boolean isEnabled()
          
 boolean isExcluded(java.lang.String theTestName)
          
 void setContainer(org.codehaus.cargo.container.Container theContainer)
           
 void setContainerClasspath(java.lang.String[] theClasspath)
          
 void setLogger(org.codehaus.cargo.util.log.Logger theLogger)
           
 void setSystemProperties(java.util.Map theProperties)
          
 void shutDown()
          
 void startUp()
          
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ContainerWrapper

public ContainerWrapper()
The default constructor.


ContainerWrapper

public ContainerWrapper(org.codehaus.cargo.container.Container theContainer)
Constructor.

Parameters:
theContainer - The container to wrap
Method Detail

getName

public java.lang.String getName()

See Also:
Container.getName()

getTestContext

public java.lang.String getTestContext()

See Also:
Container#getTestContext()

getStartUpWait

public long getStartUpWait()

See Also:
Container#getStartUpWait()

getPort

public int getPort()

See Also:
Container#getPort()

getToDir

public java.io.File getToDir()

See Also:
Container#getToDir()

init

public void init()

See Also:
Container#init()

isEnabled

public boolean isEnabled()

See Also:
Container#isEnabled()

isExcluded

public boolean isExcluded(java.lang.String theTestName)

See Also:
Container#isExcluded(String)

startUp

public void startUp()

See Also:
Container#startUp()

shutDown

public void shutDown()

See Also:
Container#shutDown()

setSystemProperties

public void setSystemProperties(java.util.Map theProperties)

See Also:
Container#setSystemProperties

setContainerClasspath

public void setContainerClasspath(java.lang.String[] theClasspath)

Since:
Cactus 1.6
See Also:
Container#setContainerClasspath(Path)

getContainerClasspath

public java.lang.String[] getContainerClasspath()

Since:
Cactus 1.6
See Also:
Container#getContainerClasspath()

getServer

public java.lang.String getServer()

See Also:
Container#getServer()

getProtocol

public java.lang.String getProtocol()

See Also:
Container#getProtocol()

getBaseURL

public java.lang.String getBaseURL()

See Also:
Container#getBaseURL()

setLogger

public void setLogger(org.codehaus.cargo.util.log.Logger theLogger)
Parameters:
theLogger - sets the logger

setContainer

public void setContainer(org.codehaus.cargo.container.Container theContainer)
Parameters:
theContainer - - the container to set


Copyright © 2001-2009 The Apache Software Foundation. All Rights Reserved.