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)voidattributeRemoved(ServletContextAttributeEvent event)voidattributeReplaced(ServletContextAttributeEvent event)voidcontextDestroyed(ServletContextEvent event)voidcontextInitialized(ServletContextEvent event)
-
-
-
Constructor Detail
-
ManagedAttributeListener
public ManagedAttributeListener(ContextHandler context, java.lang.String... managedAttributes)
-
-
Method Detail
-
attributeReplaced
public void attributeReplaced(ServletContextAttributeEvent event)
- Specified by:
attributeReplacedin interfaceServletContextAttributeListener
-
attributeRemoved
public void attributeRemoved(ServletContextAttributeEvent event)
- Specified by:
attributeRemovedin interfaceServletContextAttributeListener
-
attributeAdded
public void attributeAdded(ServletContextAttributeEvent event)
- Specified by:
attributeAddedin interfaceServletContextAttributeListener
-
contextInitialized
public void contextInitialized(ServletContextEvent event)
- Specified by:
contextInitializedin interfaceServletContextListener
-
contextDestroyed
public void contextDestroyed(ServletContextEvent event)
- Specified by:
contextDestroyedin interfaceServletContextListener
-
-