Class StandardDeployer
java.lang.Object
org.eclipse.jetty.util.component.AbstractLifeCycle
org.eclipse.jetty.util.component.ContainerLifeCycle
org.eclipse.jetty.deploy.StandardDeployer
- All Implemented Interfaces:
 Deployer, Container, Destroyable, Dumpable, Dumpable.DumpableContainer, LifeCycle
A Direct 
Deployer implementation.
This Deployer will deploy
a ContextHandler directly to the ContextHandlerCollection and start it if
appropriate.- 
Nested Class Summary
Nested classes/interfaces inherited from class AbstractLifeCycle
AbstractLifeCycle.AbstractLifeCycleListener, AbstractLifeCycle.StopExceptionNested classes/interfaces inherited from interface Container
Container.InheritedListener, Container.ListenerNested classes/interfaces inherited from interface Deployer
Deployer.ListenerNested classes/interfaces inherited from interface Dumpable
Dumpable.DumpableContainer, Dumpable.DumpAppendableNested classes/interfaces inherited from interface LifeCycle
LifeCycle.Listener - 
Field Summary
 - 
Constructor Summary
ConstructorsConstructorDescriptionStandardDeployer(ContextHandlerCollection contexts) StandardDeployer(ContextHandlerCollection contexts, boolean atomicRedeploy)  - 
Method Summary
Modifier and TypeMethodDescriptionbooleanaddEventListener(EventListener listener) Add an event listener.voiddeploy(ContextHandler contextHandler) Deploy a ContextHandler to the server, and start it if appropriate.voidredeploy(ContextHandler oldHandler, ContextHandler newContextHandler) Redeploy a ContextHandler to the server, and start it if appropriate.booleanremoveEventListener(EventListener listener) Remove an event listener.toString()voidundeploy(ContextHandler contextHandler) Undeploy and stop a ContextHandler.Methods inherited from class ContainerLifeCycle
addBean, addBean, addManaged, contains, destroy, doStart, doStop, dump, dump, dump, dumpObjects, dumpStdErr, getBean, getBeans, getBeans, getContainedBeans, getContainedBeans, installBean, installBean, isAuto, isManaged, isUnmanaged, manage, removeBean, removeBeans, setBeans, start, stop, unmanage, updateBean, updateBean, updateBeans, updateBeansMethods inherited from class AbstractLifeCycle
getEventListeners, getState, getState, isFailed, isRunning, isStarted, isStarting, isStopped, isStopping, setEventListeners, start, stopMethods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface Container
getCachedBeans, getEventListenersMethods inherited from interface Dumpable.DumpableContainer
isDumpable 
- 
Constructor Details
- 
StandardDeployer
- Parameters:
 contexts- TheContextHandlerCollectionto which to deployContextHandlers.
 - 
StandardDeployer
public StandardDeployer(@Name("contexts") ContextHandlerCollection contexts, @Name("atomicRedeploy") boolean atomicRedeploy) - Parameters:
 contexts- TheContextHandlerCollectionto which to deployContextHandlers.atomicRedeploy- Iftrue, the new handler is deployed before undeploying the old handler This may result in instances of the same application running at the same time.
 
 - 
 - 
Method Details
- 
getContexts
 - 
addEventListener
Description copied from interface:ContainerAdd an event listener. EventListeners added by this method are also added as beans.- Specified by:
 addEventListenerin interfaceContainer- Specified by:
 addEventListenerin interfaceLifeCycle- Overrides:
 addEventListenerin classContainerLifeCycle- Parameters:
 listener- the listener to add- Returns:
 - true if the listener was added
 - See Also:
 
 - 
removeEventListener
Description copied from interface:ContainerRemove an event listener.- Specified by:
 removeEventListenerin interfaceContainer- Specified by:
 removeEventListenerin interfaceLifeCycle- Overrides:
 removeEventListenerin classContainerLifeCycle- Parameters:
 listener- the listener to remove- Returns:
 - true if the listener was removed
 - See Also:
 
 - 
deploy
Description copied from interface:DeployerDeploy a ContextHandler to the server, and start it if appropriate.- Specified by:
 deployin interfaceDeployer- Parameters:
 contextHandler- theContextHandlerto deploy.
 - 
redeploy
Description copied from interface:DeployerRedeploy a ContextHandler to the server, and start it if appropriate. If possible, this is done atomically without any period of no handler being deployed. However, it maybe implemented as anDeployer.undeploy(ContextHandler)followed by aDeployer.deploy(ContextHandler)- Specified by:
 redeployin interfaceDeployer- Parameters:
 oldHandler- theContextHandlerto undeploy.newContextHandler- theContextHandlerto deploy.
 - 
undeploy
Description copied from interface:DeployerUndeploy and stop a ContextHandler.- Specified by:
 undeployin interfaceDeployer- Parameters:
 contextHandler- theContextHandlerto undeploy.
 - 
toString
- Overrides:
 toStringin classAbstractLifeCycle
 
 -