Package org.eclipse.jetty.server.handler
Class ManagedAttributeListener
java.lang.Object
org.eclipse.jetty.server.handler.ManagedAttributeListener
- All Implemented Interfaces:
jakarta.servlet.ServletContextAttributeListener
,jakarta.servlet.ServletContextListener
,EventListener
public class ManagedAttributeListener
extends Object
implements jakarta.servlet.ServletContextListener, jakarta.servlet.ServletContextAttributeListener
Enable Jetty style JMX MBeans from within a Context
-
Constructor Summary
ConstructorDescriptionManagedAttributeListener
(ContextHandler context, String... managedAttributes) -
Method Summary
Modifier and TypeMethodDescriptionvoid
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
(String name, Object oldBean, Object newBean)
-
Constructor Details
-
ManagedAttributeListener
-
-
Method Details
-
attributeReplaced
public void attributeReplaced(jakarta.servlet.ServletContextAttributeEvent event) - Specified by:
attributeReplaced
in interfacejakarta.servlet.ServletContextAttributeListener
-
attributeRemoved
public void attributeRemoved(jakarta.servlet.ServletContextAttributeEvent event) - Specified by:
attributeRemoved
in interfacejakarta.servlet.ServletContextAttributeListener
-
attributeAdded
public void attributeAdded(jakarta.servlet.ServletContextAttributeEvent event) - Specified by:
attributeAdded
in interfacejakarta.servlet.ServletContextAttributeListener
-
contextInitialized
public void contextInitialized(jakarta.servlet.ServletContextEvent event) - Specified by:
contextInitialized
in interfacejakarta.servlet.ServletContextListener
-
contextDestroyed
public void contextDestroyed(jakarta.servlet.ServletContextEvent event) - Specified by:
contextDestroyed
in interfacejakarta.servlet.ServletContextListener
-
updateBean
-