Class DecoratingListener

java.lang.Object
org.eclipse.jetty.ee10.servlet.DecoratingListener
All Implemented Interfaces:
jakarta.servlet.ServletContextAttributeListener, EventListener
Direct Known Subclasses:
CdiDecoratingListener, DecoratingListener

public class DecoratingListener extends Object implements jakarta.servlet.ServletContextAttributeListener
A ServletContextAttributeListener that listens for a context attribute to obtain a decorator instance. The instance is then either coerced to a Decorator or reflected for decorator compatible methods so it can be added to the ServletContextHandler.getObjectFactory() as a Decorator.
  • Constructor Details

  • Method Details

    • getAttributeName

      public String getAttributeName()
    • getServletContext

      public jakarta.servlet.ServletContext getServletContext()
    • attributeAdded

      public void attributeAdded(jakarta.servlet.ServletContextAttributeEvent event)
      Specified by:
      attributeAdded in interface jakarta.servlet.ServletContextAttributeListener
    • attributeRemoved

      public void attributeRemoved(jakarta.servlet.ServletContextAttributeEvent event)
      Specified by:
      attributeRemoved in interface jakarta.servlet.ServletContextAttributeListener
    • attributeReplaced

      public void attributeReplaced(jakarta.servlet.ServletContextAttributeEvent event)
      Specified by:
      attributeReplaced in interface jakarta.servlet.ServletContextAttributeListener