- java.lang.Object
-
- org.eclipse.jetty.servlet.DecoratingListener
-
- All Implemented Interfaces:
jakarta.servlet.ServletContextAttributeListener,java.util.EventListener
public class DecoratingListener extends java.lang.Object implements jakarta.servlet.ServletContextAttributeListenerA ServletContextAttributeListener that listens for a context attribute to obtain a decorator instance. The instance is then either coerced to aDecoratoror reflected for decorator compatible methods so it can be added to theServletContextHandler.getObjectFactory()as aDecorator.
-
-
Constructor Summary
Constructors Constructor Description DecoratingListener(ServletContextHandler context, java.lang.String attributeName)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidattributeAdded(jakarta.servlet.ServletContextAttributeEvent event)voidattributeRemoved(jakarta.servlet.ServletContextAttributeEvent event)voidattributeReplaced(jakarta.servlet.ServletContextAttributeEvent event)java.lang.StringgetAttributeName()jakarta.servlet.ServletContextgetServletContext()
-
-
-
Constructor Detail
-
DecoratingListener
public DecoratingListener(ServletContextHandler context, java.lang.String attributeName)
-
-
Method Detail
-
getAttributeName
public java.lang.String getAttributeName()
-
getServletContext
public jakarta.servlet.ServletContext getServletContext()
-
attributeAdded
public void attributeAdded(jakarta.servlet.ServletContextAttributeEvent event)
- Specified by:
attributeAddedin interfacejakarta.servlet.ServletContextAttributeListener
-
attributeRemoved
public void attributeRemoved(jakarta.servlet.ServletContextAttributeEvent event)
- Specified by:
attributeRemovedin interfacejakarta.servlet.ServletContextAttributeListener
-
attributeReplaced
public void attributeReplaced(jakarta.servlet.ServletContextAttributeEvent event)
- Specified by:
attributeReplacedin interfacejakarta.servlet.ServletContextAttributeListener
-
-