| |
|
| java.lang.Object org.apache.catalina.mbeans.GlobalResourcesLifecycleListener
GlobalResourcesLifecycleListener | public class GlobalResourcesLifecycleListener implements LifecycleListener(Code) | | Implementation of LifecycleListener that instantiates the
set of MBeans associated with global JNDI resources that are subject to
management.
author: Craig R. McClanahan version: $Revision: 1.5 $ $Date: 2004/06/09 20:38:16 $ since: 4.1 |
Field Summary | |
protected Lifecycle | component The owning Catalina component that we are attached to. | protected int | debug The debugging detail level for this component. | protected static Registry | registry The configuration information registry for our managed beans. |
Method Summary | |
protected void | createMBeans() Create the MBeans for the interesting global JNDI resources. | protected void | createMBeans(String prefix, Context context) Create the MBeans for the interesting global JNDI resources in
the specified naming context. | protected void | createMBeans(String name, UserDatabase database) Create the MBeans for the specified UserDatabase and its contents. | protected void | destroyMBeans() Destroy the MBeans for the interesting global JNDI resources. | public int | getDebug() | public void | lifecycleEvent(LifecycleEvent event) Primary entry point for startup and shutdown events. | protected void | log(String message) Log a message. | protected void | log(String message, Throwable throwable) Log a message and associated exception. | public void | setDebug(int debug) |
component | protected Lifecycle component(Code) | | The owning Catalina component that we are attached to.
|
debug | protected int debug(Code) | | The debugging detail level for this component.
|
registry | protected static Registry registry(Code) | | The configuration information registry for our managed beans.
|
createMBeans | protected void createMBeans()(Code) | | Create the MBeans for the interesting global JNDI resources.
|
createMBeans | protected void createMBeans(String prefix, Context context) throws NamingException(Code) | | Create the MBeans for the interesting global JNDI resources in
the specified naming context.
Parameters: prefix - Prefix for complete object name paths Parameters: context - Context to be scanned exception: NamingException - if a JNDI exception occurs |
createMBeans | protected void createMBeans(String name, UserDatabase database) throws Exception(Code) | | Create the MBeans for the specified UserDatabase and its contents.
Parameters: name - Complete resource name of this UserDatabase Parameters: database - The UserDatabase to be processed exception: Exception - if an exception occurs while creating MBeans |
destroyMBeans | protected void destroyMBeans()(Code) | | Destroy the MBeans for the interesting global JNDI resources.
|
getDebug | public int getDebug()(Code) | | |
lifecycleEvent | public void lifecycleEvent(LifecycleEvent event)(Code) | | Primary entry point for startup and shutdown events.
Parameters: event - The event that has occurred |
log | protected void log(String message)(Code) | | Log a message.
Parameters: message - The message to be logged |
log | protected void log(String message, Throwable throwable)(Code) | | Log a message and associated exception.
Parameters: message - The message to be logged Parameters: throwable - The exception to be logged |
setDebug | public void setDebug(int debug)(Code) | | |
|
|
|