Module org.eclipse.jetty.server
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,java.util.EventListener
public class ManagedAttributeListener extends java.lang.Object implements jakarta.servlet.ServletContextListener, jakarta.servlet.ServletContextAttributeListenerEnable 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(jakarta.servlet.ServletContextAttributeEvent event)voidattributeRemoved(jakarta.servlet.ServletContextAttributeEvent event)voidattributeReplaced(jakarta.servlet.ServletContextAttributeEvent event)voidcontextDestroyed(jakarta.servlet.ServletContextEvent event)voidcontextInitialized(jakarta.servlet.ServletContextEvent event)protected voidupdateBean(java.lang.String name, java.lang.Object oldBean, java.lang.Object newBean)
-
-
-
Constructor Detail
-
ManagedAttributeListener
public ManagedAttributeListener(ContextHandler context, java.lang.String... managedAttributes)
-
-
Method Detail
-
attributeReplaced
public void attributeReplaced(jakarta.servlet.ServletContextAttributeEvent event)
- Specified by:
attributeReplacedin interfacejakarta.servlet.ServletContextAttributeListener
-
attributeRemoved
public void attributeRemoved(jakarta.servlet.ServletContextAttributeEvent event)
- Specified by:
attributeRemovedin interfacejakarta.servlet.ServletContextAttributeListener
-
attributeAdded
public void attributeAdded(jakarta.servlet.ServletContextAttributeEvent event)
- Specified by:
attributeAddedin interfacejakarta.servlet.ServletContextAttributeListener
-
contextInitialized
public void contextInitialized(jakarta.servlet.ServletContextEvent event)
- Specified by:
contextInitializedin interfacejakarta.servlet.ServletContextListener
-
contextDestroyed
public void contextDestroyed(jakarta.servlet.ServletContextEvent event)
- Specified by:
contextDestroyedin interfacejakarta.servlet.ServletContextListener
-
updateBean
protected void updateBean(java.lang.String name, java.lang.Object oldBean, java.lang.Object newBean)
-
-