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. |
protected void |
waitForCompletion(boolean waitForStarting)
Ping the WAR CPC to verify if the container is started or stopped.
|
executePostStartTasks, forceStopInternal, getConfiguration, getFileHandler, getOutput, getState, getTimeout, isAppend, restart, setAppend, setConfiguration, setFileHandler, setOutput, setState, setTimeout, start, stop, verifygetLogger, setLoggerclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetConfiguration, getFileHandler, setConfiguration, setFileHandlergetCapability, getId, getName, getStategetOutput, getTimeout, isAppend, restart, 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 stopprotected void waitForCompletion(boolean waitForStarting)
throws InterruptedException
waitForCompletion in class AbstractLocalContainerwaitForStarting - if true then wait for container start, if false wait for container
stopInterruptedException - if the thread sleep is interruptedpublic ContainerType getType()
getType in interface ContainerContainer.getType()Copyright © 2004-2013 Codehaus. All Rights Reserved.