org.vostok.management.servlet
Class ContextListener
java.lang.Object
org.vostok.management.servlet.ContextListener
- All Implemented Interfaces:
- java.util.EventListener, javax.servlet.ServletContextListener
public class ContextListener
- extends java.lang.Object
- implements javax.servlet.ServletContextListener
This context listener loads all mbeans from the web application this context belong too.
Expect 2 contexts attributes into web.xml :
- vostok.management.factory : name for the factory
to use (optionnal).
- vostok.management.path : comma separated list of classes paths to the mbeans classes. (mandatory).
- See Also:
MBeanFactory
Field Summary |
static java.lang.String |
FACTORY
Web context attribute. |
static java.lang.String |
PATH
Web context attribute. comma separated list of classes paths where too scan for mbean (annoted with MBean annotation. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
FACTORY
public static final java.lang.String FACTORY
- Web context attribute. Name of the factory to use. Optionnal
- See Also:
MBeanFactory
,
Constant Field Values
PATH
public static final java.lang.String PATH
- Web context attribute. comma separated list of classes paths where too scan for mbean (annoted with MBean annotation. Mandatory.
- See Also:
MBean
,
MBeanFactory
,
Constant Field Values
ContextListener
public ContextListener()
contextInitialized
public void contextInitialized(javax.servlet.ServletContextEvent sce)
- Specified by:
contextInitialized
in interface javax.servlet.ServletContextListener
contextDestroyed
public void contextDestroyed(javax.servlet.ServletContextEvent sce)
- Specified by:
contextDestroyed
in interface javax.servlet.ServletContextListener