Class ManagedAttributeListener

  • All Implemented Interfaces:
    jakarta.servlet.ServletContextAttributeListener, jakarta.servlet.ServletContextListener, java.util.EventListener

    public class ManagedAttributeListener
    extends java.lang.Object
    implements jakarta.servlet.ServletContextListener, jakarta.servlet.ServletContextAttributeListener
    Enable Jetty style JMX MBeans from within a Context
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void attributeAdded​(jakarta.servlet.ServletContextAttributeEvent event)  
      void attributeRemoved​(jakarta.servlet.ServletContextAttributeEvent event)  
      void attributeReplaced​(jakarta.servlet.ServletContextAttributeEvent event)  
      void contextDestroyed​(jakarta.servlet.ServletContextEvent event)  
      void contextInitialized​(jakarta.servlet.ServletContextEvent event)  
      protected void updateBean​(java.lang.String name, java.lang.Object oldBean, java.lang.Object newBean)  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • ManagedAttributeListener

        public ManagedAttributeListener​(ContextHandler context,
                                        java.lang.String... managedAttributes)
    • Method Detail

      • attributeReplaced

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

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

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

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

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

        protected void updateBean​(java.lang.String name,
                                  java.lang.Object oldBean,
                                  java.lang.Object newBean)