Package org.eclipse.jetty.servlet
Class BaseHolder<T>
java.lang.Object
org.eclipse.jetty.util.component.AbstractLifeCycle
org.eclipse.jetty.servlet.BaseHolder<T>
- Type Parameters:
T- the type of holder
- Direct Known Subclasses:
Holder,ListenerHolder
@Deprecated(since="2021-05-27")
public abstract class BaseHolder<T>
extends AbstractLifeCycle
implements Dumpable
Deprecated.
The Eclipse Jetty and Apache Felix Http Jetty packages are no longer supported.
AbstractHolder
Base class for all servlet-related classes that may be lazily instantiated (eg servlet, filter,
listener), and/or require metadata to be held regarding their origin
(web.xml, annotation, programmatic api etc).
-
Nested Class Summary
Nested classes/interfaces inherited from class org.eclipse.jetty.util.component.AbstractLifeCycle
AbstractLifeCycle.AbstractLifeCycleListenerNested classes/interfaces inherited from interface org.eclipse.jetty.util.component.Dumpable
Dumpable.DumpableContainerNested classes/interfaces inherited from interface org.eclipse.jetty.util.component.LifeCycle
LifeCycle.Listener -
Field Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoiddoStart()Deprecated.voiddoStop()Deprecated.dump()Deprecated.voiddump(Appendable out, String indent) Deprecated.Dump this object (and children) into an Appendable using the provided indent after any new lines.Deprecated.Deprecated.Deprecated.Deprecated.voidDeprecated.Do any setup necessary after startingbooleanDeprecated.voidsetClassName(String className) Deprecated.voidsetHeldClass(Class<? extends T> held) Deprecated.voidsetServletHandler(ServletHandler servletHandler) Deprecated.Methods inherited from class org.eclipse.jetty.util.component.AbstractLifeCycle
addLifeCycleListener, getState, getState, getStopTimeout, isFailed, isRunning, isStarted, isStarting, isStopped, isStopping, removeLifeCycleListener, setStopTimeout, start, stop, toString
-
Method Details
-
getSource
Deprecated. -
initialize
Deprecated.Do any setup necessary after starting- Throws:
Exception- if unable to initialize
-
doStart
Deprecated.- Throws:
Exception
-
doStop
Deprecated.- Throws:
Exception
-
getClassName
Deprecated. -
getHeldClass
Deprecated. -
getServletHandler
Deprecated.- Returns:
- Returns the servletHandler.
-
setServletHandler
Deprecated.- Parameters:
servletHandler- TheServletHandlerthat will handle requests dispatched to this servlet.
-
setClassName
Deprecated.- Parameters:
className- The className to set.
-
setHeldClass
Deprecated.- Parameters:
held- The class to hold
-
isInstance
public boolean isInstance()Deprecated.- Returns:
- True if this holder was created for a specific instance.
-
dump
Deprecated.Description copied from interface:DumpableDump this object (and children) into an Appendable using the provided indent after any new lines. The indent should not be applied to the first object dumped.- Specified by:
dumpin interfaceDumpable- Parameters:
out- The appendable to dump toindent- The indent to apply after any new lines.- Throws:
IOException- if unable to write to Appendable
-
dump
Deprecated.
-