From: markt Date: Tue, 8 Feb 2011 14:28:30 +0000 (+0000) Subject: Improve comments X-Git-Url: https://git.internetallee.de/?a=commitdiff_plain;h=eb47d9259a7871c4a6ff282c76ef3a01f17682c4;p=tomcat7.0 Improve comments git-svn-id: https://svn.apache.org/repos/asf/tomcat/trunk@1068415 13f79535-47bb-0310-9956-ffa450edef68 --- diff --git a/java/org/apache/catalina/util/LifecycleMBeanBase.java b/java/org/apache/catalina/util/LifecycleMBeanBase.java index 346957c7f..2939d9215 100644 --- a/java/org/apache/catalina/util/LifecycleMBeanBase.java +++ b/java/org/apache/catalina/util/LifecycleMBeanBase.java @@ -132,8 +132,8 @@ public abstract class LifecycleMBeanBase extends LifecycleBase * Utility method to enable sub-classes to easily register additional * components that don't implement {@link MBeanRegistration} with * an MBean server.
- * 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 extends LifecycleBase /** * Utility method to enable sub-classes to easily unregister additional * components that don't implement {@link MBeanRegistration} with - * an MBean server. + * an MBean server.
+ * 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) {