Author: markt
Date: Tue Feb  8 14:28:30 2011
New Revision: 1068415

URL: http://svn.apache.org/viewvc?rev=1068415&view=rev
Log:
Improve comments

Modified:
    tomcat/trunk/java/org/apache/catalina/util/LifecycleMBeanBase.java

Modified: tomcat/trunk/java/org/apache/catalina/util/LifecycleMBeanBase.java
URL: 
http://svn.apache.org/viewvc/tomcat/trunk/java/org/apache/catalina/util/LifecycleMBeanBase.java?rev=1068415&r1=1068414&r2=1068415&view=diff
==============================================================================
--- tomcat/trunk/java/org/apache/catalina/util/LifecycleMBeanBase.java 
(original)
+++ tomcat/trunk/java/org/apache/catalina/util/LifecycleMBeanBase.java Tue Feb  
8 14:28:30 2011
@@ -132,8 +132,8 @@ public abstract class LifecycleMBeanBase
      * Utility method to enable sub-classes to easily register additional
      * components that don't implement {@link MBeanRegistration} with
      * an MBean server.<br/>
-     * Note: This method can only be used once {@link #initInternal()} has been
-     * called. 
+     * Note: This method should only be used once {@link #initInternal()} has
+     * been called and before {@link #destroyInternal()} has been called. 
      * 
      * @param obj                       The object the register
      * @param objectNameKeyProperties   The key properties component of the
@@ -171,7 +171,10 @@ public abstract class LifecycleMBeanBase
     /**
      * Utility method to enable sub-classes to easily unregister additional
      * components that don't implement {@link MBeanRegistration} with
-     * an MBean server.
+     * an MBean server.<br/>
+     * Note: This method should only be used once {@link #initInternal()} has
+     * been called and before {@link #destroyInternal()} has been called. 
+     * 
      * @param on    The name of the component to unregister
      */
     protected final void unregister(ObjectName on) {



---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscr...@tomcat.apache.org
For additional commands, e-mail: dev-h...@tomcat.apache.org

Reply via email to