Package org.eclipse.jetty.servlet
Class DecoratingListener
java.lang.Object
org.eclipse.jetty.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 Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidattributeAdded(jakarta.servlet.ServletContextAttributeEvent event) voidattributeRemoved(jakarta.servlet.ServletContextAttributeEvent event) voidattributeReplaced(jakarta.servlet.ServletContextAttributeEvent event) jakarta.servlet.ServletContext
-
Constructor Details
-
DecoratingListener
-
-
Method Details
-
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
-