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.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
-
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description voiddoStart()Deprecated.voiddoStop()Deprecated.java.lang.Stringdump()Deprecated.voiddump(java.lang.Appendable out, java.lang.String indent)Deprecated.Dump this object (and children) into an Appendable using the provided indent after any new lines.java.lang.StringgetClassName()Deprecated.java.lang.Class<? extends T>getHeldClass()Deprecated.ServletHandlergetServletHandler()Deprecated.SourcegetSource()Deprecated.voidinitialize()Deprecated.Do any setup necessary after startingbooleanisInstance()Deprecated.voidsetClassName(java.lang.String className)Deprecated.voidsetHeldClass(java.lang.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 Detail
-
getSource
public Source getSource()
Deprecated.
-
initialize
public void initialize() throws java.lang.ExceptionDeprecated.Do any setup necessary after starting- Throws:
java.lang.Exception- if unable to initialize
-
doStart
public void doStart() throws java.lang.ExceptionDeprecated.- Throws:
java.lang.Exception
-
doStop
public void doStop() throws java.lang.ExceptionDeprecated.- Throws:
java.lang.Exception
-
getClassName
@ManagedAttribute(value="Class Name", readonly=true) public java.lang.String getClassName()
Deprecated.
-
getHeldClass
public java.lang.Class<? extends T> getHeldClass()
Deprecated.
-
getServletHandler
public ServletHandler getServletHandler()
Deprecated.- Returns:
- Returns the servletHandler.
-
setServletHandler
public void setServletHandler(ServletHandler servletHandler)
Deprecated.- Parameters:
servletHandler- TheServletHandlerthat will handle requests dispatched to this servlet.
-
setClassName
public void setClassName(java.lang.String className)
Deprecated.- Parameters:
className- The className to set.
-
setHeldClass
public void setHeldClass(java.lang.Class<? extends T> held)
Deprecated.- Parameters:
held- The class to hold
-
isInstance
public boolean isInstance()
Deprecated.- Returns:
- True if this holder was created for a specific instance.
-
dump
public void dump(java.lang.Appendable out, java.lang.String indent) throws java.io.IOExceptionDeprecated.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.
-
-