Package org.apache.catalina.mbeans
Class GlobalResourcesLifecycleListener
java.lang.Object
org.apache.catalina.mbeans.GlobalResourcesLifecycleListener
- All Implemented Interfaces:
- LifecycleListener
Implementation of 
LifecycleListener that instantiates the set of MBeans associated with global JNDI
 resources that are subject to management.
 
 This listener must only be nested within Server elements.
- Since:
- 4.1
- Author:
- Craig R. McClanahan
- 
Field SummaryFieldsModifier and TypeFieldDescriptionprotected LifecycleThe owning Catalina component that we are attached to.protected static final StringManager
- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptionprotected voidCreate the MBeans for the interesting global JNDI resources.protected voidcreateMBeans(String prefix, Context context) Create the MBeans for the interesting global JNDI resources in the specified naming context.protected voidcreateMBeans(String name, UserDatabase database) Create the MBeans for the specified UserDatabase and its contents.protected voidDestroy the MBeans for the interesting global JNDI resources.voidlifecycleEvent(LifecycleEvent event) Primary entry point for startup and shutdown events.
- 
Field Details- 
sm
- 
componentThe owning Catalina component that we are attached to.
 
- 
- 
Constructor Details- 
GlobalResourcesLifecycleListenerpublic GlobalResourcesLifecycleListener()
 
- 
- 
Method Details- 
lifecycleEventPrimary entry point for startup and shutdown events.- Specified by:
- lifecycleEventin interface- LifecycleListener
- Parameters:
- event- The event that has occurred
 
- 
createMBeansprotected void createMBeans()Create the MBeans for the interesting global JNDI resources.
- 
createMBeansCreate the MBeans for the interesting global JNDI resources in the specified naming context.- Parameters:
- prefix- Prefix for complete object name paths
- context- Context to be scanned
- Throws:
- NamingException- if a JNDI exception occurs
 
- 
createMBeansCreate the MBeans for the specified UserDatabase and its contents.- Parameters:
- name- Complete resource name of this UserDatabase
- database- The UserDatabase to be processed
- Throws:
- Exception- if an exception occurs while creating MBeans
 
- 
destroyMBeansprotected void destroyMBeans()Destroy the MBeans for the interesting global JNDI resources.
 
-