public class GlobalResourcesLifecycleListener extends Object implements LifecycleListener
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.
Modifier and Type | Field and Description |
---|---|
protected Lifecycle |
component
The owning Catalina component that we are attached to.
|
protected static StringManager |
sm |
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 static final StringManager sm
protected Lifecycle component
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-2022 Apache Software Foundation. All Rights Reserved.