org.codehaus.cargo.container.resin.internal
Class AbstractResinInstalledLocalContainer
java.lang.Object
org.codehaus.cargo.util.log.LoggedObject
org.codehaus.cargo.container.spi.AbstractContainer
org.codehaus.cargo.container.spi.AbstractLocalContainer
org.codehaus.cargo.container.spi.AbstractInstalledLocalContainer
org.codehaus.cargo.container.resin.internal.AbstractResinInstalledLocalContainer
- All Implemented Interfaces:
- org.codehaus.cargo.container.Container, org.codehaus.cargo.container.InstalledLocalContainer, org.codehaus.cargo.container.internal.RunnableContainer, org.codehaus.cargo.container.internal.SpawnedContainer, org.codehaus.cargo.container.LocalContainer, org.codehaus.cargo.util.log.Loggable
- Direct Known Subclasses:
- Resin2xInstalledLocalContainer, Resin3xInstalledLocalContainer
public abstract class AbstractResinInstalledLocalContainer
- extends org.codehaus.cargo.container.spi.AbstractInstalledLocalContainer
Common support for all Resin container versions.
- Version:
- $Id: AbstractResinInstalledLocalContainer.java 1179 2006-09-02 19:22:23Z vmassol $
Method Summary |
void |
doStart(org.apache.tools.ant.taskdefs.Java java)
|
void |
doStop(org.apache.tools.ant.taskdefs.Java java)
|
org.codehaus.cargo.container.ContainerCapability |
getCapability()
|
protected java.lang.String |
getVersion(java.lang.String defaultVersion)
|
protected abstract void |
startUpAdditions(org.apache.tools.ant.taskdefs.Java javaContainer,
org.apache.tools.ant.types.Path classpath)
Allow specific version implementations to add custom settings to the
Java container that will be started. |
Methods inherited from class org.codehaus.cargo.container.spi.AbstractInstalledLocalContainer |
addToolsJarToClasspath, getAntUtils, getExtraClasspath, getFileHandler, getHome, getHttpUtils, getJdkUtils, getResourceUtils, getSystemProperties, getType, setExtraClasspath, setFileHandler, setHome, setLogger, setSystemProperties, startInternal, stopInternal, verify |
Methods inherited from class org.codehaus.cargo.container.spi.AbstractLocalContainer |
getConfiguration, getOutput, getState, getTimeout, isAppend, setAppend, setConfiguration, setOutput, setState, setTimeout, start, stop, waitForCompletion |
Methods inherited from class org.codehaus.cargo.util.log.LoggedObject |
getLogger |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface org.codehaus.cargo.container.LocalContainer |
getConfiguration, setConfiguration |
Methods inherited from interface org.codehaus.cargo.container.Container |
getId, getName, getState |
Methods inherited from interface org.codehaus.cargo.util.log.Loggable |
getLogger |
Methods inherited from interface org.codehaus.cargo.container.internal.RunnableContainer |
getOutput, getTimeout, isAppend, setAppend, setOutput, setTimeout, start, stop |
AbstractResinInstalledLocalContainer
public AbstractResinInstalledLocalContainer(org.codehaus.cargo.container.configuration.LocalConfiguration configuration)
-
- See Also:
AbstractInstalledLocalContainer.AbstractInstalledLocalContainer(LocalConfiguration)
getCapability
public org.codehaus.cargo.container.ContainerCapability getCapability()
-
- See Also:
Container.getCapability()
doStart
public void doStart(org.apache.tools.ant.taskdefs.Java java)
throws java.lang.Exception
-
- Specified by:
doStart
in class org.codehaus.cargo.container.spi.AbstractInstalledLocalContainer
- Throws:
java.lang.Exception
- See Also:
AbstractInstalledLocalContainer.doStart(Java)
doStop
public void doStop(org.apache.tools.ant.taskdefs.Java java)
throws java.lang.Exception
-
- Specified by:
doStop
in class org.codehaus.cargo.container.spi.AbstractInstalledLocalContainer
- Throws:
java.lang.Exception
- See Also:
AbstractInstalledLocalContainer.doStop(Java)
startUpAdditions
protected abstract void startUpAdditions(org.apache.tools.ant.taskdefs.Java javaContainer,
org.apache.tools.ant.types.Path classpath)
throws java.io.FileNotFoundException
- Allow specific version implementations to add custom settings to the
Java container that will be started.
- Parameters:
javaContainer
- the Ant Java object that will start the containerclasspath
- the classpath that will be used to start the
container
- Throws:
java.io.FileNotFoundException
- in case the Tools jar cannot be found
getVersion
protected java.lang.String getVersion(java.lang.String defaultVersion)
- Parameters:
defaultVersion
- default version to use if we cannot find out the exact Resin version
- Returns:
- the Resin version found
Copyright © 2004-2010 Codehaus. All Rights Reserved.