From eb47d9259a7871c4a6ff282c76ef3a01f17682c4 Mon Sep 17 00:00:00 2001 From: markt Date: Tue, 8 Feb 2011 14:28:30 +0000 Subject: [PATCH] Improve comments git-svn-id: https://svn.apache.org/repos/asf/tomcat/trunk@1068415 13f79535-47bb-0310-9956-ffa450edef68 --- java/org/apache/catalina/util/LifecycleMBeanBase.java | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) 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) { -- 2.11.0