Package org.eclipse.jetty.servlet
Class DecoratingListener
java.lang.Object
org.eclipse.jetty.servlet.DecoratingListener
- All Implemented Interfaces:
EventListener
,javax.servlet.ServletContextAttributeListener
- Direct Known Subclasses:
CdiDecoratingListener
,DecoratingListener
public class DecoratingListener
extends Object
implements javax.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
(javax.servlet.ServletContextAttributeEvent event) void
attributeRemoved
(javax.servlet.ServletContextAttributeEvent event) void
attributeReplaced
(javax.servlet.ServletContextAttributeEvent event) javax.servlet.ServletContext
-
Constructor Details
-
DecoratingListener
-
-
Method Details
-
getAttributeName
-
getServletContext
public javax.servlet.ServletContext getServletContext() -
attributeAdded
public void attributeAdded(javax.servlet.ServletContextAttributeEvent event) - Specified by:
attributeAdded
in interfacejavax.servlet.ServletContextAttributeListener
-
attributeRemoved
public void attributeRemoved(javax.servlet.ServletContextAttributeEvent event) - Specified by:
attributeRemoved
in interfacejavax.servlet.ServletContextAttributeListener
-
attributeReplaced
public void attributeReplaced(javax.servlet.ServletContextAttributeEvent event) - Specified by:
attributeReplaced
in interfacejavax.servlet.ServletContextAttributeListener
-