public abstract class AbstractEmbeddedLocalContainer extends AbstractLocalContainer implements EmbeddedLocalContainer
Constructor and Description |
---|
AbstractEmbeddedLocalContainer(LocalConfiguration configuration) |
Modifier and Type | Method and Description |
---|---|
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. |
ClassLoader |
getClassLoader() |
ContainerType |
getType() |
void |
setClassLoader(ClassLoader classLoader) |
protected void |
startInternal()
Installed and Embedded containers do not have the same signature for their
doStart method. |
protected void |
stopInternal()
Installed and Embedded containers do not have the same signature for their
doStop method. |
getConfiguration, getOutput, getState, getTimeout, isAppend, setAppend, setConfiguration, setOutput, setState, setTimeout, start, stop, verify, waitForCompletion
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getConfiguration, setConfiguration
getCapability, getId, getName, getState
getOutput, getTimeout, isAppend, setAppend, setOutput, setTimeout, start, stop
public AbstractEmbeddedLocalContainer(LocalConfiguration configuration)
public void setClassLoader(ClassLoader classLoader)
setClassLoader
in interface EmbeddedLocalContainer
classLoader
- the custom classloader to use for loading the Embedded container's
classes.public ClassLoader getClassLoader()
getClassLoader
in interface EmbeddedLocalContainer
protected final void startInternal() throws Exception
doStart
method. Thus we need to abstract it.startInternal
in class AbstractLocalContainer
Exception
- if any error is raised during the container startAbstractLocalContainer.startInternal()
protected final void stopInternal() throws Exception
doStop
method. Thus we need to abstract it.stopInternal
in class AbstractLocalContainer
Exception
- if any error is raised during the container stopAbstractLocalContainer.stopInternal()
protected abstract void doStart() throws Exception
RunnableContainer.start()
that all
containers extending this class must implement.Exception
- if any error is raised during the container startprotected abstract void doStop() throws Exception
RunnableContainer.stop()
that all
containers extending this class must implement.Exception
- if any error is raised during the container stoppublic ContainerType getType()
getType
in interface Container
Container.getType()
Copyright © 2004-2013 Codehaus. All Rights Reserved.