Class ManagedAttributeListener
java.lang.Object
org.eclipse.jetty.ee8.nested.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 Summary
ConstructorsConstructorDescriptionManagedAttributeListener(ContextHandler contextHandler, String... managedAttributes) -
Method Summary
Modifier and TypeMethodDescriptionvoidattributeAdded(javax.servlet.ServletContextAttributeEvent event) voidattributeRemoved(javax.servlet.ServletContextAttributeEvent event) voidattributeReplaced(javax.servlet.ServletContextAttributeEvent event) voidcontextDestroyed(javax.servlet.ServletContextEvent event) voidcontextInitialized(javax.servlet.ServletContextEvent event) protected voidupdateBean(String name, Object oldBean, Object newBean)
-
Constructor Details
-
ManagedAttributeListener
-
-
Method Details
-
attributeReplaced
public void attributeReplaced(javax.servlet.ServletContextAttributeEvent event) - Specified by:
attributeReplacedin interfacejavax.servlet.ServletContextAttributeListener
-
attributeRemoved
public void attributeRemoved(javax.servlet.ServletContextAttributeEvent event) - Specified by:
attributeRemovedin interfacejavax.servlet.ServletContextAttributeListener
-
attributeAdded
public void attributeAdded(javax.servlet.ServletContextAttributeEvent event) - Specified by:
attributeAddedin interfacejavax.servlet.ServletContextAttributeListener
-
contextInitialized
public void contextInitialized(javax.servlet.ServletContextEvent event) - Specified by:
contextInitializedin interfacejavax.servlet.ServletContextListener
-
contextDestroyed
public void contextDestroyed(javax.servlet.ServletContextEvent event) - Specified by:
contextDestroyedin interfacejavax.servlet.ServletContextListener
-
updateBean
-