Class ManagedAttributeListener

java.lang.Object
org.eclipse.jetty.server.handler.ManagedAttributeListener
All Implemented Interfaces:
EventListener, javax.servlet.ServletContextAttributeListener, javax.servlet.ServletContextListener

public class ManagedAttributeListener extends Object implements javax.servlet.ServletContextListener, javax.servlet.ServletContextAttributeListener
Enable Jetty style JMX MBeans from within a Context
  • Constructor Details

    • ManagedAttributeListener

      public ManagedAttributeListener(ContextHandler context, String... managedAttributes)
  • Method Details

    • attributeReplaced

      public void attributeReplaced(javax.servlet.ServletContextAttributeEvent event)
      Specified by:
      attributeReplaced in interface javax.servlet.ServletContextAttributeListener
    • attributeRemoved

      public void attributeRemoved(javax.servlet.ServletContextAttributeEvent event)
      Specified by:
      attributeRemoved in interface javax.servlet.ServletContextAttributeListener
    • attributeAdded

      public void attributeAdded(javax.servlet.ServletContextAttributeEvent event)
      Specified by:
      attributeAdded in interface javax.servlet.ServletContextAttributeListener
    • contextInitialized

      public void contextInitialized(javax.servlet.ServletContextEvent event)
      Specified by:
      contextInitialized in interface javax.servlet.ServletContextListener
    • contextDestroyed

      public void contextDestroyed(javax.servlet.ServletContextEvent event)
      Specified by:
      contextDestroyed in interface javax.servlet.ServletContextListener
    • updateBean

      protected void updateBean(String name, Object oldBean, Object newBean)