Class DecoratingListener
java.lang.Object
org.eclipse.jetty.ee8.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
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidattributeAdded(javax.servlet.ServletContextAttributeEvent event) voidattributeRemoved(javax.servlet.ServletContextAttributeEvent event) voidattributeReplaced(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:
attributeAddedin interfacejavax.servlet.ServletContextAttributeListener
-
attributeRemoved
public void attributeRemoved(javax.servlet.ServletContextAttributeEvent event) - Specified by:
attributeRemovedin interfacejavax.servlet.ServletContextAttributeListener
-
attributeReplaced
public void attributeReplaced(javax.servlet.ServletContextAttributeEvent event) - Specified by:
attributeReplacedin interfacejavax.servlet.ServletContextAttributeListener
-