|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.apache.catalina.mbeans.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 int |
debug
The debugging detail level for this component. |
protected static org.apache.commons.modeler.Registry |
registry
The configuration information registry for our managed beans. |
protected java.io.PrintStream |
stream
The destination for log messages. |
Constructor Summary | |
GlobalResourcesLifecycleListener()
|
Method Summary | |
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. |
int |
getDebug()
|
void |
lifecycleEvent(LifecycleEvent event)
Primary entry point for startup and shutdown events. |
protected void |
log(java.lang.String message)
Log a message. |
protected void |
log(java.lang.String message,
java.lang.Throwable throwable)
Log a message and associated exception. |
void |
setDebug(int debug)
|
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 org.apache.commons.modeler.Registry registry
protected int debug
protected java.io.PrintStream stream
Constructor Detail |
public GlobalResourcesLifecycleListener()
Method Detail |
public int getDebug()
public void setDebug(int debug)
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 scanned
javax.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 processed
java.lang.Exception
- if an exception occurs while creating MBeansprotected void destroyMBeans()
protected void log(java.lang.String message)
message
- The message to be loggedprotected void log(java.lang.String message, java.lang.Throwable throwable)
message
- The message to be loggedthrowable
- The exception to be logged
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |