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, waitForCompletionclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetConfiguration, setConfigurationgetCapability, getId, getName, getStategetOutput, getTimeout, isAppend, setAppend, setOutput, setTimeout, start, stoppublic AbstractEmbeddedLocalContainer(LocalConfiguration configuration)
public void setClassLoader(ClassLoader classLoader)
setClassLoader in interface EmbeddedLocalContainerclassLoader - the custom classloader to use for loading the Embedded container's
classes.public ClassLoader getClassLoader()
getClassLoader in interface EmbeddedLocalContainerprotected final void startInternal()
throws Exception
doStart method. Thus we need to abstract it.startInternal in class AbstractLocalContainerException - 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 AbstractLocalContainerException - 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 ContainerContainer.getType()Copyright © 2004-2013 Codehaus. All Rights Reserved.