LifecycleListener
public class GlobalResourcesLifecycleListener extends java.lang.Object implements LifecycleListener
LifecycleListener
that instantiates the
set of MBeans associated with global JNDI resources that are subject to
management.Modifier and Type | Field | Description |
---|---|---|
protected Lifecycle |
component |
The owning Catalina component that we are attached to.
|
protected static Registry |
registry |
The configuration information registry for our managed beans.
|
Constructor | Description |
---|---|
GlobalResourcesLifecycleListener() |
Modifier and Type | Method | Description |
---|---|---|
protected void |
createMBeans() |
Create the MBeans for the interesting global JNDI resources.
|
protected void |
createMBeans(java.lang.String prefix,
javax.naming.Context context) |
Create the MBeans for the interesting global JNDI resources in
the specified naming context.
|
protected void |
createMBeans(java.lang.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.
|
void |
lifecycleEvent(LifecycleEvent event) |
Primary entry point for startup and shutdown events.
|
protected Lifecycle component
protected static final Registry registry
public void lifecycleEvent(LifecycleEvent event)
lifecycleEvent
in interface LifecycleListener
event
- The event that has occurredprotected void createMBeans()
protected void createMBeans(java.lang.String prefix, javax.naming.Context context) throws javax.naming.NamingException
prefix
- Prefix for complete object name pathscontext
- Context to be scannedjavax.naming.NamingException
- if a JNDI exception occursprotected void createMBeans(java.lang.String name, UserDatabase database) throws java.lang.Exception
name
- Complete resource name of this UserDatabasedatabase
- The UserDatabase to be processedjava.lang.Exception
- if an exception occurs while creating MBeansprotected void destroyMBeans()
Copyright © 2000-2018 Apache Software Foundation. All Rights Reserved.