Class BaseHolder<T>

Type Parameters:
T - the type of holder
All Implemented Interfaces:
Dumpable, LifeCycle
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).
  • Method Details

    • getSource

      public Source getSource()
      Deprecated.
    • initialize

      public void initialize() throws Exception
      Deprecated.
      Do any setup necessary after starting
      Throws:
      Exception - if unable to initialize
    • doStart

      public void doStart() throws Exception
      Deprecated.
      Throws:
      Exception
    • doStop

      public void doStop() throws Exception
      Deprecated.
      Throws:
      Exception
    • getClassName

      @ManagedAttribute(value="Class Name", readonly=true) public String getClassName()
      Deprecated.
    • getHeldClass

      public Class<? extends T> getHeldClass()
      Deprecated.
    • getServletHandler

      public ServletHandler getServletHandler()
      Deprecated.
      Returns:
      Returns the servletHandler.
    • setServletHandler

      public void setServletHandler(ServletHandler servletHandler)
      Deprecated.
      Parameters:
      servletHandler - The ServletHandler that will handle requests dispatched to this servlet.
    • setClassName

      public void setClassName(String className)
      Deprecated.
      Parameters:
      className - The className to set.
    • setHeldClass

      public void setHeldClass(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(Appendable out, String indent) throws IOException
      Deprecated.
      Description copied from interface: Dumpable
      Dump 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:
      dump in interface Dumpable
      Parameters:
      out - The appendable to dump to
      indent - The indent to apply after any new lines.
      Throws:
      IOException - if unable to write to Appendable
    • dump

      public String dump()
      Deprecated.
      Specified by:
      dump in interface Dumpable