User: ejort
Date: 01/12/15 11:40:52
Modified: src/main/javax/management NotCompliantMBeanException.java
OperationsException.java ReflectionException.java
RuntimeErrorException.java
RuntimeMBeanException.java
RuntimeOperationsException.java
ServiceNotFoundException.java
Log:
More javadoc
Revision Changes Path
1.2 +30 -6 jmx/src/main/javax/management/NotCompliantMBeanException.java
Index: NotCompliantMBeanException.java
===================================================================
RCS file:
/cvsroot/jboss/jmx/src/main/javax/management/NotCompliantMBeanException.java,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -r1.1 -r1.2
--- NotCompliantMBeanException.java 2001/12/03 01:39:07 1.1
+++ NotCompliantMBeanException.java 2001/12/15 19:40:52 1.2
@@ -1,21 +1,45 @@
/*
- * LGPL
+ * JBoss, the OpenSource J2EE webOS
+ *
+ * Distributable under LGPL license.
+ * See terms of license at gnu.org.
*/
package javax.management;
+/**
+ * Thrown when trying to register an MBean that does not conform the
+ * JMX specification.
+ *
+ * @author <a href="mailto:[EMAIL PROTECTED]">Adrian Brock</a>
+ * @version $Revision: 1.2 $
+ */
public class NotCompliantMBeanException
- extends OperationsException {
-
- public NotCompliantMBeanException() {
+ extends OperationsException
+{
+ // Attributes ----------------------------------------------------
+
+ // Static --------------------------------------------------------
+
+ // Constructors --------------------------------------------------
+
+ /**
+ * Construct a new NotCompliantMBeanException with no message.
+ */
+ public NotCompliantMBeanException()
+ {
super();
}
- public NotCompliantMBeanException(java.lang.String message)
+ /**
+ * Construct a new NotCompliantMBeanException with the given message.
+ *
+ * @param message the error message.
+ */
+ public NotCompliantMBeanException(String message)
{
super(message);
}
-
}
1.2 +30 -7 jmx/src/main/javax/management/OperationsException.java
Index: OperationsException.java
===================================================================
RCS file: /cvsroot/jboss/jmx/src/main/javax/management/OperationsException.java,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -r1.1 -r1.2
--- OperationsException.java 2001/12/03 01:39:07 1.1
+++ OperationsException.java 2001/12/15 19:40:52 1.2
@@ -1,19 +1,42 @@
/*
- * LGPL
+ * JBoss, the OpenSource J2EE webOS
+ *
+ * Distributable under LGPL license.
+ * See terms of license at gnu.org.
*/
package javax.management;
+/**
+ * Thrown when an error occurs performing an operation on an MBean.
+ *
+ * @author <a href="mailto:[EMAIL PROTECTED]">Adrian Brock</a>
+ * @version $Revision: 1.2 $
+ */
public class OperationsException
- extends JMException {
- public OperationsException() {
+ extends JMException
+{
+ // Attributes ----------------------------------------------------
+
+ // Static --------------------------------------------------------
+
+ // Constructors --------------------------------------------------
+
+ /**
+ * Construct a new OperationsException with no message.
+ */
+ public OperationsException()
+ {
super();
}
- public OperationsException(java.lang.String message) {
+ /**
+ * Construct a new OperationsException with the given message.
+ *
+ * @param message the error message.
+ */
+ public OperationsException(String message)
+ {
super(message);
}
-
-
-
}
1.2 +49 -7 jmx/src/main/javax/management/ReflectionException.java
Index: ReflectionException.java
===================================================================
RCS file: /cvsroot/jboss/jmx/src/main/javax/management/ReflectionException.java,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -r1.1 -r1.2
--- ReflectionException.java 2001/12/03 01:39:07 1.1
+++ ReflectionException.java 2001/12/15 19:40:52 1.2
@@ -1,27 +1,69 @@
/*
- * LGPL
+ * JBoss, the OpenSource J2EE webOS
+ *
+ * Distributable under LGPL license.
+ * See terms of license at gnu.org.
*/
package javax.management;
+/**
+ * Thrown by the MBeanServer when an exception occurs using the
+ * java.lang.reflect package to invoke methods on MBeans.
+ *
+ * @author <a href="mailto:[EMAIL PROTECTED]">Adrian Brock</a>
+ * @version $Revision: 1.2 $
+ */
public class ReflectionException
- extends JMException {
-
+ extends JMException
+{
+ // Attributes ----------------------------------------------------
+
+ /**
+ * The wrapped exception.
+ */
private Exception e = null;
+
+ // Static --------------------------------------------------------
- public ReflectionException(java.lang.Exception e) {
+ // Constructors --------------------------------------------------
+
+ /**
+ * Construct a new ReflectionException from a given exception.
+ *
+ * @param e the exception to wrap.
+ */
+ public ReflectionException(Exception e)
+ {
super();
this.e = e;
}
- public ReflectionException(java.lang.Exception e,
- java.lang.String message) {
+ /**
+ * Construct a new ReflectionException from a given exception and message.
+ *
+ * @param e the exception to wrap.
+ * @param message the specified message.
+ */
+ public ReflectionException(Exception e, String message)
+ {
super(message);
this.e = e;
}
+
+ // Public --------------------------------------------------------
- public java.lang.Exception getTargetException() {
+ /**
+ * Retrieves the wrapped exception.
+ *
+ * @return the wrapped exception.
+ */
+ public Exception getTargetException()
+ {
return e;
}
+ // JMException overrides -----------------------------------------
+
+ // Private -------------------------------------------------------
}
1.2 +47 -7 jmx/src/main/javax/management/RuntimeErrorException.java
Index: RuntimeErrorException.java
===================================================================
RCS file: /cvsroot/jboss/jmx/src/main/javax/management/RuntimeErrorException.java,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -r1.1 -r1.2
--- RuntimeErrorException.java 2001/12/03 01:39:07 1.1
+++ RuntimeErrorException.java 2001/12/15 19:40:52 1.2
@@ -1,29 +1,69 @@
/*
- * LGPL
+ * JBoss, the OpenSource J2EE webOS
+ *
+ * Distributable under LGPL license.
+ * See terms of license at gnu.org.
*/
package javax.management;
+/**
+ * Thrown when a java.lang.error occurs.
+ *
+ * @author <a href="mailto:[EMAIL PROTECTED]">Adrian Brock</a>
+ * @version $Revision: 1.2 $
+ */
public class RuntimeErrorException
- extends JMRuntimeException {
+ extends JMRuntimeException
+{
+
+ // Attributes ----------------------------------------------------
+ /**
+ * The wrapped error.
+ */
private Error e = null;
+
+ // Static --------------------------------------------------------
- public RuntimeErrorException(java.lang.Error e) {
+ // Constructors --------------------------------------------------
+
+ /**
+ * Construct a new RuntimeErrorException from a given error.
+ *
+ * @param e the error to wrap.
+ */
+ public RuntimeErrorException(Error e)
+ {
super();
this.e = e;
}
- public RuntimeErrorException(java.lang.Error e,
- java.lang.String message) {
+ /**
+ * Construct a new RuntimeErrorException from a given error and message.
+ *
+ * @param e the error to wrap.
+ * @param message the specified message.
+ */
+ public RuntimeErrorException(Error e, String message)
+ {
super(message);
this.e = e;
}
+
+ // Public --------------------------------------------------------
- public java.lang.Error getTargetError() {
+ /**
+ * Retrieves the wrapped error.
+ *
+ * @return the wrapped error.
+ */
+ public java.lang.Error getTargetError()
+ {
return e;
}
-
+ // JMRuntimeException overrides ----------------------------------
+ // Private -------------------------------------------------------
}
1.2 +48 -7 jmx/src/main/javax/management/RuntimeMBeanException.java
Index: RuntimeMBeanException.java
===================================================================
RCS file: /cvsroot/jboss/jmx/src/main/javax/management/RuntimeMBeanException.java,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -r1.1 -r1.2
--- RuntimeMBeanException.java 2001/12/03 01:39:07 1.1
+++ RuntimeMBeanException.java 2001/12/15 19:40:52 1.2
@@ -1,28 +1,69 @@
/*
- * LGPL
+ * JBoss, the OpenSource J2EE webOS
+ *
+ * Distributable under LGPL license.
+ * See terms of license at gnu.org.
*/
package javax.management;
+/**
+ * Wraps runtime exceptions thrown by MBeans.
+ *
+ * @author <a href="mailto:[EMAIL PROTECTED]">Adrian Brock</a>
+ * @version $Revision: 1.2 $
+ */
public class RuntimeMBeanException
- extends JMRuntimeException {
-
+ extends JMRuntimeException
+{
+ // Attributes ----------------------------------------------------
+
+ /**
+ * The wrapped runtime exception.
+ */
private RuntimeException e = null;
+
+ // Static --------------------------------------------------------
- public RuntimeMBeanException(java.lang.RuntimeException e) {
+ // Constructors --------------------------------------------------
+
+ /**
+ * Construct a new RuntimeMBeanException from a given runtime exception.
+ *
+ * @param e the runtime exception to wrap.
+ */
+ public RuntimeMBeanException(RuntimeException e)
+ {
super();
this.e = e;
}
- public RuntimeMBeanException(java.lang.RuntimeException e,
- java.lang.String message) {
+ /**
+ * Construct a new RuntimeMBeanException from a given runtime exception
+ * and message.
+ *
+ * @param e the runtime exception to wrap.
+ * @param message the specified message.
+ */
+ public RuntimeMBeanException(RuntimeException e, String message)
+ {
super(message);
this.e = e;
}
+
+ // Public --------------------------------------------------------
- public java.lang.RuntimeException getTargetException() {
+ /**
+ * Retrieves the wrapped runtime exception.
+ *
+ * @return the wrapped runtime exception.
+ */
+ public RuntimeException getTargetException()
+ {
return e;
}
+ // JMRuntimeException overrides ----------------------------------
+ // Private -------------------------------------------------------
}
1.2 +47 -8 jmx/src/main/javax/management/RuntimeOperationsException.java
Index: RuntimeOperationsException.java
===================================================================
RCS file:
/cvsroot/jboss/jmx/src/main/javax/management/RuntimeOperationsException.java,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -r1.1 -r1.2
--- RuntimeOperationsException.java 2001/12/03 01:39:07 1.1
+++ RuntimeOperationsException.java 2001/12/15 19:40:52 1.2
@@ -1,30 +1,69 @@
/*
- * LGPL
+ * JBoss, the OpenSource J2EE webOS
+ *
+ * Distributable under LGPL license.
+ * See terms of license at gnu.org.
*/
package javax.management;
+/**
+ * Wraps runtime exceptions thrown when performing operations on MBeans.
+ *
+ * @author <a href="mailto:[EMAIL PROTECTED]">Adrian Brock</a>
+ * @version $Revision: 1.2 $
+ */
public class RuntimeOperationsException
- extends JMRuntimeException {
-
+ extends JMRuntimeException
+{
+ // Attributes ----------------------------------------------------
+
+ /**
+ * The wrapped runtime exception.
+ */
private RuntimeException e = null;
+
+ // Static --------------------------------------------------------
- public RuntimeOperationsException(java.lang.RuntimeException e) {
+ // Constructors --------------------------------------------------
+
+ /**
+ * Construct a new RuntimeOperationsException from a given runtime exception.
+ *
+ * @param e the runtime exception to wrap.
+ */
+ public RuntimeOperationsException(RuntimeException e)
+ {
super();
this.e = e;
}
- public RuntimeOperationsException(java.lang.RuntimeException e,
- java.lang.String message) {
+ /**
+ * Construct a new RuntimeOperationsException from a given runtime exception
+ * and message.
+ *
+ * @param e the runtime exception to wrap.
+ * @param message the specified message.
+ */
+ public RuntimeOperationsException(RuntimeException e, String message)
+ {
super(message);
this.e = e;
}
+ // Public --------------------------------------------------------
- public java.lang.RuntimeException getTargetException() {
+ /**
+ * Retrieves the wrapped runtime exception.
+ *
+ * @return the wrapped runtime exception.
+ */
+ public RuntimeException getTargetException()
+ {
return e;
}
-
+ // JMRuntimeException overrides ----------------------------------
+ // Private -------------------------------------------------------
}
1.2 +27 -5 jmx/src/main/javax/management/ServiceNotFoundException.java
Index: ServiceNotFoundException.java
===================================================================
RCS file:
/cvsroot/jboss/jmx/src/main/javax/management/ServiceNotFoundException.java,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -r1.1 -r1.2
--- ServiceNotFoundException.java 2001/12/03 01:39:07 1.1
+++ ServiceNotFoundException.java 2001/12/15 19:40:52 1.2
@@ -1,20 +1,42 @@
/*
- * LGPL
+ * JBoss, the OpenSource J2EE webOS
+ *
+ * Distributable under LGPL license.
+ * See terms of license at gnu.org.
*/
package javax.management;
+/**
+ * Thrown when a service is not supported.
+ *
+ * @author <a href="mailto:[EMAIL PROTECTED]">Adrian Brock</a>
+ * @version $Revision: 1.2 $
+ */
public class ServiceNotFoundException
- extends OperationsException {
+ extends OperationsException
+{
+ // Attributes ----------------------------------------------------
+
+ // Static --------------------------------------------------------
+
+ // Constructors --------------------------------------------------
+ /**
+ * Construct a new ServiceNotFoundException with no message.
+ */
public ServiceNotFoundException()
{
super();
}
- public ServiceNotFoundException(java.lang.String message)
+
+ /**
+ * Construct a new ServiceNotFoundException with the given message.
+ *
+ * @param message the error message.
+ */
+ public ServiceNotFoundException(String message)
{
super(message);
}
-
-
}
_______________________________________________
Jboss-development mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-development