Package org.eclipse.jetty.server.handler
Class ManagedAttributeListener
- java.lang.Object
-
- org.eclipse.jetty.server.handler.ManagedAttributeListener
-
- All Implemented Interfaces:
java.util.EventListener,javax.servlet.ServletContextAttributeListener,javax.servlet.ServletContextListener
public class ManagedAttributeListener extends java.lang.Object implements javax.servlet.ServletContextListener, javax.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(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(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(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
protected void updateBean(java.lang.String name, java.lang.Object oldBean, java.lang.Object newBean)
-
-