org.apache.catalina.mbeans

Class GlobalResourcesLifecycleListener

public class GlobalResourcesLifecycleListener extends Object implements LifecycleListener

Implementation of LifecycleListener that instantiates the set of MBeans associated with global JNDI resources that are subject to management.

Since: 4.1

Version: $Revision: 467222 $ $Date: 2006-10-24 05:17:11 +0200 (Tue, 24 Oct 2006) $

Author: Craig R. McClanahan

Field Summary
protected Lifecyclecomponent
The owning Catalina component that we are attached to.
protected static Registryregistry
The configuration information registry for our managed beans.
Method Summary
protected voidcreateMBeans()
Create 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 voiddestroyMBeans()
Destroy the MBeans for the interesting global JNDI resources.
voidlifecycleEvent(LifecycleEvent event)
Primary entry point for startup and shutdown events.

Field Detail

component

protected Lifecycle component
The owning Catalina component that we are attached to.

registry

protected static Registry registry
The configuration information registry for our managed beans.

Method Detail

createMBeans

protected void createMBeans()
Create the MBeans for the interesting global JNDI resources.

createMBeans

protected void createMBeans(String prefix, Context context)
Create 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

createMBeans

protected void createMBeans(String name, UserDatabase database)
Create 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

destroyMBeans

protected void destroyMBeans()
Destroy the MBeans for the interesting global JNDI resources.

lifecycleEvent

public void lifecycleEvent(LifecycleEvent event)
Primary entry point for startup and shutdown events.

Parameters: event The event that has occurred

Copyright © 2000-2011 Apache Software Foundation. All Rights Reserved.