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
@Deprecated
public static class ServletContextHandler.Initializer
extends AbstractLifeCycle
implements ServletContextHandler.ServletContainerInitializerCaller
Deprecated.
A utility class to hold a
ServletContainerInitializer
and implement the
ServletContextHandler.ServletContainerInitializerCaller
interface so that the SCI is correctly
started if an instance of this class is added as a bean to a ServletContextHandler
.-
Nested Class Summary
Nested classes/interfaces inherited from class org.eclipse.jetty.util.component.AbstractLifeCycle
AbstractLifeCycle.AbstractLifeCycleListener, AbstractLifeCycle.StopException
Nested classes/interfaces inherited from interface org.eclipse.jetty.util.component.LifeCycle
LifeCycle.Listener
-
Field Summary
-
Constructor Summary
ConstructorDescriptionInitializer
(ServletContextHandler context, javax.servlet.ServletContainerInitializer sci) Deprecated.Initializer
(ServletContextHandler context, javax.servlet.ServletContainerInitializer sci, Set<Class<?>> classes) Deprecated. -
Method Summary
Modifier and TypeMethodDescriptionprotected void
doStart()
Deprecated.Method to override to start the lifecycleMethods inherited from class org.eclipse.jetty.util.component.AbstractLifeCycle
addEventListener, doStop, getEventListeners, getState, getState, isFailed, isRunning, isStarted, isStarting, isStopped, isStopping, removeEventListener, setEventListeners, 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
addEventListener, isFailed, isRunning, isStarted, isStarting, isStopped, isStopping, removeEventListener, start, stop
-
Constructor Details
-
Initializer
public Initializer(ServletContextHandler context, javax.servlet.ServletContainerInitializer sci, Set<Class<?>> classes) Deprecated. -
Initializer
Deprecated.
-
-
Method Details
-
doStart
Deprecated.Description copied from class:AbstractLifeCycle
Method to override to start the lifecycle- Overrides:
doStart
in classAbstractLifeCycle
- Throws:
AbstractLifeCycle.StopException
- If thrown, the lifecycle will immediately be stopped.Exception
- If there was a problem starting. Will cause a transition to FAILED state
-