Package org.eclipse.jetty.servlet
Class DecoratingListener
- java.lang.Object
-
- org.eclipse.jetty.servlet.DecoratingListener
-
- All Implemented Interfaces:
java.util.EventListener,ServletContextAttributeListener
- Direct Known Subclasses:
DecoratingListener
@Deprecated(since="2021-05-27") public class DecoratingListener extends java.lang.Object implements ServletContextAttributeListener
Deprecated.The Eclipse Jetty and Apache Felix Http Jetty packages are no longer supported.A 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)Deprecated.
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description voidattributeAdded(ServletContextAttributeEvent event)Deprecated.Notification that a new attribute was added to the servlet context.voidattributeRemoved(ServletContextAttributeEvent event)Deprecated.Notification that an existing attribute has been removed from the servlet context.voidattributeReplaced(ServletContextAttributeEvent event)Deprecated.Notification that an attribute on the servlet context has been replaced.java.lang.StringgetAttributeName()Deprecated.ServletContextgetServletContext()Deprecated.
-
-
-
Constructor Detail
-
DecoratingListener
public DecoratingListener(ServletContextHandler context, java.lang.String attributeName)
Deprecated.
-
-
Method Detail
-
getAttributeName
public java.lang.String getAttributeName()
Deprecated.
-
getServletContext
public ServletContext getServletContext()
Deprecated.
-
attributeAdded
public void attributeAdded(ServletContextAttributeEvent event)
Deprecated.Description copied from interface:ServletContextAttributeListenerNotification that a new attribute was added to the servlet context. Called after the attribute is added.- Specified by:
attributeAddedin interfaceServletContextAttributeListener- Parameters:
event- Information about the new attribute
-
attributeRemoved
public void attributeRemoved(ServletContextAttributeEvent event)
Deprecated.Description copied from interface:ServletContextAttributeListenerNotification that an existing attribute has been removed from the servlet context. Called after the attribute is removed.- Specified by:
attributeRemovedin interfaceServletContextAttributeListener- Parameters:
event- Information about the removed attribute
-
attributeReplaced
public void attributeReplaced(ServletContextAttributeEvent event)
Deprecated.Description copied from interface:ServletContextAttributeListenerNotification that an attribute on the servlet context has been replaced. Called after the attribute is replaced.- Specified by:
attributeReplacedin interfaceServletContextAttributeListener- Parameters:
event- Information about the replaced attribute
-
-