Package org.eclipse.jetty.servlet
Class ListenerHolder
- java.lang.Object
-
- org.eclipse.jetty.util.component.AbstractLifeCycle
-
- org.eclipse.jetty.servlet.BaseHolder<EventListener>
-
- org.eclipse.jetty.servlet.ListenerHolder
-
@Deprecated(since="2021-05-27") public class ListenerHolder extends BaseHolder<EventListener>
Deprecated.The Eclipse Jetty and Apache Felix Http Jetty packages are no longer supported.ListenerHolder Specialization of BaseHolder for servlet listeners. This allows us to record where the listener originated - web.xml, annotation, api etc.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static interface
ListenerHolder.WrapFunction
Deprecated.The Eclipse Jetty and Apache Felix Http Jetty packages are no longer supported.static class
ListenerHolder.Wrapper
Deprecated.-
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.Dumpable
Dumpable.DumpableContainer
-
Nested classes/interfaces inherited from interface org.eclipse.jetty.util.component.LifeCycle
LifeCycle.Listener
-
-
Constructor Summary
Constructors Constructor Description ListenerHolder()
Deprecated.ListenerHolder(Class<? extends EventListener> listenerClass)
Deprecated.ListenerHolder(Source source)
Deprecated.
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description void
doStart()
Deprecated.void
doStop()
Deprecated.EventListener
getListener()
Deprecated.void
setListener(EventListener listener)
Deprecated.Set an explicit instance.String
toString()
Deprecated.-
Methods inherited from class org.eclipse.jetty.servlet.BaseHolder
dump, dump, getClassName, getHeldClass, getServletHandler, getSource, initialize, isInstance, setClassName, setHeldClass, setServletHandler
-
Methods inherited from class org.eclipse.jetty.util.component.AbstractLifeCycle
addLifeCycleListener, getState, getState, getStopTimeout, isFailed, isRunning, isStarted, isStarting, isStopped, isStopping, removeLifeCycleListener, setStopTimeout, start, stop
-
-
-
-
Constructor Detail
-
ListenerHolder
public ListenerHolder()
Deprecated.
-
ListenerHolder
public ListenerHolder(Source source)
Deprecated.
-
ListenerHolder
public ListenerHolder(Class<? extends EventListener> listenerClass)
Deprecated.
-
-
Method Detail
-
getListener
public EventListener getListener()
Deprecated.
-
setListener
public void setListener(EventListener listener)
Deprecated.Set an explicit instance. In this case, just like ServletHolder and FilterHolder, the listener will not be introspected for annotations like Resource etc.
-
doStart
public void doStart() throws Exception
Deprecated.- Overrides:
doStart
in classBaseHolder<EventListener>
- Throws:
Exception
-
doStop
public void doStop() throws Exception
Deprecated.- Overrides:
doStop
in classBaseHolder<EventListener>
- Throws:
Exception
-
toString
public String toString()
Deprecated.- Overrides:
toString
in classAbstractLifeCycle
-
-