User: ejort
Date: 01/12/15 10:01:06
Modified: src/main/javax/management MBeanRegistration.java
MBeanRegistrationException.java
Log:
More javadoc
Revision Changes Path
1.3 +2 -2 jmx/src/main/javax/management/MBeanRegistration.java
Index: MBeanRegistration.java
===================================================================
RCS file: /cvsroot/jboss/jmx/src/main/javax/management/MBeanRegistration.java,v
retrieving revision 1.2
retrieving revision 1.3
diff -u -r1.2 -r1.3
--- MBeanRegistration.java 2001/12/15 17:47:15 1.2
+++ MBeanRegistration.java 2001/12/15 18:01:06 1.3
@@ -19,7 +19,7 @@
* The postDeregister method is called by the MBeanServer after deregistration.<p>
*
* @author <a href="mailto:[EMAIL PROTECTED]">Adrian Brock</a>.
- * @version $Revision: 1.2 $
+ * @version $Revision: 1.3 $
*
*/
public interface MBeanRegistration
@@ -62,8 +62,8 @@
* This method is called by the MBeanServer before deregistration takes
* place.<p>
*
- * The MBean can throw an exception, but this will not stop
- * deregistration. The exception is forwarded to the invoker wrapped in
+ * The MBean can throw an exception, this will stop the deregistration.
+ * The exception is forwarded to the invoker wrapped in
* an MBeanRegistrationException.
*/
public void preDeregister()
1.2 +42 -5 jmx/src/main/javax/management/MBeanRegistrationException.java
Index: MBeanRegistrationException.java
===================================================================
RCS file:
/cvsroot/jboss/jmx/src/main/javax/management/MBeanRegistrationException.java,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -r1.1 -r1.2
--- MBeanRegistrationException.java 2001/12/03 01:39:07 1.1
+++ MBeanRegistrationException.java 2001/12/15 18:01:06 1.2
@@ -1,20 +1,57 @@
/*
- * LGPL
+ * JBoss, the OpenSource J2EE webOS
+ *
+ * Distributable under LGPL license.
+ * See terms of license at gnu.org.
*/
package javax.management;
+/**
+ * A wrapper for exceptions thrown by MBeans that implement
+ * MBeanRegistration. These exceptions are thrown in preRegister and
+ * preDeregister.
+ *
+ * @see javax.management.MBeanRegistration
+ *
+ * @author <a href="mailto:[EMAIL PROTECTED]">Adrian Brock</a>
+ * @version $Revision: 1.2 $
+ */
public class MBeanRegistrationException
- extends MBeanException {
+ extends MBeanException
+{
+ // Attributes ----------------------------------------------------
+
+ // Static --------------------------------------------------------
+
+ // Constructors --------------------------------------------------
- public MBeanRegistrationException(java.lang.Exception e) {
+ /**
+ * Construct a new MBeanRegistrationException from a given exception.
+ *
+ * @param e the exception to wrap.
+ */
+
+ public MBeanRegistrationException(Exception e)
+ {
super(e);
}
- public MBeanRegistrationException(java.lang.Exception e,
- java.lang.String message) {
+ /**
+ * Construct a new MBeanRegistrationException from a given exception
+ * and message.
+ *
+ * @param e the exception to wrap.
+ * @param message the specified message.
+ */
+ public MBeanRegistrationException(Exception e, String message)
+ {
super(e, message);
}
+ // Public --------------------------------------------------------
+
+ // MBeanException overrides --------------------------------------
+ // Private -------------------------------------------------------
}
_______________________________________________
Jboss-development mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-development