Package org.eclipse.jetty.ee10.servlet
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 Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
attributeAdded
(jakarta.servlet.ServletContextAttributeEvent event) void
attributeRemoved
(jakarta.servlet.ServletContextAttributeEvent event) void
attributeReplaced
(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:
attributeAdded
in interfacejakarta.servlet.ServletContextAttributeListener
-
attributeRemoved
public void attributeRemoved(jakarta.servlet.ServletContextAttributeEvent event) - Specified by:
attributeRemoved
in interfacejakarta.servlet.ServletContextAttributeListener
-
attributeReplaced
public void attributeReplaced(jakarta.servlet.ServletContextAttributeEvent event) - Specified by:
attributeReplaced
in interfacejakarta.servlet.ServletContextAttributeListener
-