org.codehaus.cargo.container.spi
Class AbstractEmbeddedLocalContainer
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.AbstractEmbeddedLocalContainer
- All Implemented Interfaces:
- Container, EmbeddedLocalContainer, LocalContainer, org.codehaus.cargo.util.log.Loggable, RunnableContainer
- public abstract class AbstractEmbeddedLocalContainer
- extends AbstractLocalContainer
- implements EmbeddedLocalContainer
Default container implementation that all local embedded container implementations must extend.
- Version:
- $Id: AbstractEmbeddedLocalContainer.java 969 2006-03-27 11:34:18Z vmassol $
Method Summary |
protected abstract void |
doStart()
Implementation of RunnableContainer.start() that all
containers extending this class must implement. |
protected abstract void |
doStop()
Implementation of RunnableContainer.stop() that all
containers extending this class must implement. |
java.lang.ClassLoader |
getClassLoader()
|
ContainerType |
getType()
|
void |
setClassLoader(java.lang.ClassLoader classLoader)
|
protected void |
startInternal()
Installed and Embedded containers do not have the same signature for their
doStart method. Thus we need to abstract it. |
protected void |
stopInternal()
Installed and Embedded containers do not have the same signature for their
doStop method. Thus we need to abstract it. |
Methods inherited from class org.codehaus.cargo.container.spi.AbstractLocalContainer |
getConfiguration, getOutput, getState, getTimeout, isAppend, setAppend, setConfiguration, setOutput, setState, setTimeout, start, stop, verify, waitForCompletion |
Methods inherited from class org.codehaus.cargo.util.log.LoggedObject |
getLogger, setLogger |
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.util.log.Loggable |
getLogger, setLogger |
AbstractEmbeddedLocalContainer
public AbstractEmbeddedLocalContainer(LocalConfiguration configuration)
- {@inheritDoc}
- See Also:
AbstractLocalContainer.AbstractLocalContainer(org.codehaus.cargo.container.configuration.LocalConfiguration)
setClassLoader
public void setClassLoader(java.lang.ClassLoader classLoader)
- Specified by:
setClassLoader
in interface EmbeddedLocalContainer
- Parameters:
classLoader
- the custom classloader to use for loading the Embedded container's
classes.
getClassLoader
public java.lang.ClassLoader getClassLoader()
- Specified by:
getClassLoader
in interface EmbeddedLocalContainer
- Returns:
- the custom classloader to use for loading the Embedded container's classes.
startInternal
protected final void startInternal()
throws java.lang.Exception
- Installed and Embedded containers do not have the same signature for their
doStart
method. Thus we need to abstract it.
- Specified by:
startInternal
in class AbstractLocalContainer
- Throws:
java.lang.Exception
- if any error is raised during the container start- See Also:
AbstractLocalContainer.startInternal()
stopInternal
protected final void stopInternal()
throws java.lang.Exception
- Installed and Embedded containers do not have the same signature for their
doStop
method. Thus we need to abstract it.
- Specified by:
stopInternal
in class AbstractLocalContainer
- Throws:
java.lang.Exception
- if any error is raised during the container stop- See Also:
AbstractLocalContainer.stopInternal()
doStart
protected abstract void doStart()
throws java.lang.Exception
- Implementation of
RunnableContainer.start()
that all
containers extending this class must implement.
- Throws:
java.lang.Exception
- if any error is raised during the container start
doStop
protected abstract void doStop()
throws java.lang.Exception
- Implementation of
RunnableContainer.stop()
that all
containers extending this class must implement.
- Throws:
java.lang.Exception
- if any error is raised during the container stop
getType
public ContainerType getType()
-
- Specified by:
getType
in interface Container
- Returns:
- the container's type (local , remote, etc)
- See Also:
Container.getType()
Copyright © 2004-2007 Codehaus. All Rights Reserved.