Package org.eclipse.jetty.servlet
Class ServletContextHandler.Initializer
- java.lang.Object
-
- org.eclipse.jetty.util.component.AbstractLifeCycle
-
- org.eclipse.jetty.servlet.ServletContextHandler.Initializer
-
- All Implemented Interfaces:
ServletContextHandler.ServletContainerInitializerCaller
,LifeCycle
- Enclosing class:
- ServletContextHandler
public static class ServletContextHandler.Initializer extends AbstractLifeCycle implements ServletContextHandler.ServletContainerInitializerCaller
A utility class to hold aServletContainerInitializer
and implement theServletContextHandler.ServletContainerInitializerCaller
interface so that the SCI is correctly started if an instance of this class is added as a bean to aServletContextHandler
.
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class org.eclipse.jetty.util.component.AbstractLifeCycle
AbstractLifeCycle.AbstractLifeCycleListener
-
Nested classes/interfaces inherited from interface org.eclipse.jetty.util.component.LifeCycle
LifeCycle.Listener
-
-
Constructor Summary
Constructors Constructor Description Initializer(ServletContextHandler context, javax.servlet.ServletContainerInitializer sci)
Initializer(ServletContextHandler context, javax.servlet.ServletContainerInitializer sci, java.util.Set<java.lang.Class<?>> classes)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected void
doStart()
-
Methods inherited from class org.eclipse.jetty.util.component.AbstractLifeCycle
addLifeCycleListener, doStop, getState, getState, getStopTimeout, isFailed, isRunning, isStarted, isStarting, isStopped, isStopping, removeLifeCycleListener, setStopTimeout, start, stop, toString
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface org.eclipse.jetty.util.component.LifeCycle
addLifeCycleListener, isFailed, isRunning, isStarted, isStarting, isStopped, isStopping, removeLifeCycleListener, start, stop
-
-
-
-
Constructor Detail
-
Initializer
public Initializer(ServletContextHandler context, javax.servlet.ServletContainerInitializer sci, java.util.Set<java.lang.Class<?>> classes)
-
Initializer
public Initializer(ServletContextHandler context, javax.servlet.ServletContainerInitializer sci)
-
-
Method Detail
-
doStart
protected void doStart() throws java.lang.Exception
- Overrides:
doStart
in classAbstractLifeCycle
- Throws:
java.lang.Exception
-
-