|
Apache Tomcat 7.0.4 | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.apache.catalina.mbeans.GlobalResourcesLifecycleListener
public class GlobalResourcesLifecycleListener
Implementation of LifecycleListener that instantiates the
set of MBeans associated with global JNDI resources that are subject to
management.
| Field Summary | |
|---|---|
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 Summary | |
|---|---|
GlobalResourcesLifecycleListener()
|
|
| 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. |
void |
lifecycleEvent(LifecycleEvent event)
Primary entry point for startup and shutdown events. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected Lifecycle component
protected static Registry registry
| Constructor Detail |
|---|
public GlobalResourcesLifecycleListener()
| Method Detail |
|---|
public void lifecycleEvent(LifecycleEvent event)
lifecycleEvent in interface LifecycleListenerevent - 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 scanned
NamingException - if a JNDI exception occurs
protected void createMBeans(String name,
UserDatabase database)
throws Exception
name - Complete resource name of this UserDatabasedatabase - The UserDatabase to be processed
Exception - if an exception occurs while creating MBeansprotected void destroyMBeans()
|
Apache Tomcat 7.0.4 | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||