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