Package org.eclipse.jetty.server.handler
Class ManagedAttributeListener
- java.lang.Object
-
- org.eclipse.jetty.server.handler.ManagedAttributeListener
-
- All Implemented Interfaces:
java.util.EventListener,ServletContextAttributeListener,ServletContextListener
public class ManagedAttributeListener extends java.lang.Object implements ServletContextListener, ServletContextAttributeListener
Enable Jetty style JMX MBeans from within a Context
-
-
Constructor Summary
Constructors Constructor Description ManagedAttributeListener(ContextHandler context, java.lang.String... managedAttributes)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidattributeAdded(ServletContextAttributeEvent event)Notification that a new attribute was added to the servlet context.voidattributeRemoved(ServletContextAttributeEvent event)Notification that an existing attribute has been removed from the servlet context.voidattributeReplaced(ServletContextAttributeEvent event)Notification that an attribute on the servlet context has been replaced.voidcontextDestroyed(ServletContextEvent event)Notification that the servlet context is about to be shut down.voidcontextInitialized(ServletContextEvent event)Notification that the web application initialization process is starting.
-
-
-
Constructor Detail
-
ManagedAttributeListener
public ManagedAttributeListener(ContextHandler context, java.lang.String... managedAttributes)
-
-
Method Detail
-
attributeReplaced
public void attributeReplaced(ServletContextAttributeEvent event)
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
-
attributeRemoved
public void attributeRemoved(ServletContextAttributeEvent event)
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
-
attributeAdded
public void attributeAdded(ServletContextAttributeEvent event)
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
-
contextInitialized
public void contextInitialized(ServletContextEvent event)
Description copied from interface:ServletContextListenerNotification that the web application initialization process is starting. All ServletContextListeners are notified of context initialization before any filter or servlet in the web application is initialized.- Specified by:
contextInitializedin interfaceServletContextListener
-
contextDestroyed
public void contextDestroyed(ServletContextEvent event)
Description copied from interface:ServletContextListenerNotification that the servlet context is about to be shut down. All servlets and filters have been destroy()ed before any ServletContextListeners are notified of context destruction.- Specified by:
contextDestroyedin interfaceServletContextListener
-
-