mx4j/src/core/javax/management MBeanAttributeInfo.java,1.14,1.15 MBeanConstructorInfo.java,1.13,1.14 MBeanFeatureInfo.java,1.9,1.10 MBeanInfo.java,1.15,1.16 MBeanNotificationInfo.java,1.13,1.14 MBeanOperationInfo.java,1.13,1.14 MBeanParameterInfo.java,1.11,1.12 ObjectName.java,1.25,1.26

Simone Bordet <[email protected]> Sat, 14 May 2005 08:43:31 +0000
Newsgroups gmane.comp.java.mx4j.cvs
Message-ID <[email protected]>
Update of /cvsroot/mx4j/mx4j/src/core/javax/management
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv11684/src/core/javax/management

Modified Files:
	MBeanAttributeInfo.java MBeanConstructorInfo.java 
	MBeanFeatureInfo.java MBeanInfo.java 
	MBeanNotificationInfo.java MBeanOperationInfo.java 
	MBeanParameterInfo.java ObjectName.java 
Log Message:
Fixed throws clause to be compliant with JMX RI 1.2.1 (adding/removing RuntimeExceptions from throws clause)

Index: MBeanConstructorInfo.java
===================================================================
RCS file: /cvsroot/mx4j/mx4j/src/core/javax/management/MBeanConstructorInfo.java,v
retrieving revision 1.13
retrieving revision 1.14
diff -C2 -d -r1.13 -r1.14
*** MBeanConstructorInfo.java	13 Nov 2004 16:38:21 -0000	1.13
--- MBeanConstructorInfo.java	14 May 2005 08:43:29 -0000	1.14
***************
*** 54,58 ****
      * @param signature   The constructor signature
      */
!    public MBeanConstructorInfo(String name, String description, MBeanParameterInfo[] signature)
     {
        super(name, description);
--- 54,58 ----
      * @param signature   The constructor signature
      */
!    public MBeanConstructorInfo(String name, String description, MBeanParameterInfo[] signature) throws IllegalArgumentException
     {
        super(name, description);

Index: MBeanInfo.java
===================================================================
RCS file: /cvsroot/mx4j/mx4j/src/core/javax/management/MBeanInfo.java,v
retrieving revision 1.15
retrieving revision 1.16
diff -C2 -d -r1.15 -r1.16
*** MBeanInfo.java	13 Nov 2004 16:38:21 -0000	1.15
--- MBeanInfo.java	14 May 2005 08:43:29 -0000	1.16
***************
*** 51,54 ****
--- 51,55 ----
  
     public MBeanInfo(String className, String description, MBeanAttributeInfo[] attributes, MBeanConstructorInfo[] constructors, MBeanOperationInfo[] operations, MBeanNotificationInfo[] notifications)
+            throws IllegalArgumentException
     {
        this.className = className;

Index: MBeanFeatureInfo.java
===================================================================
RCS file: /cvsroot/mx4j/mx4j/src/core/javax/management/MBeanFeatureInfo.java,v
retrieving revision 1.9
retrieving revision 1.10
diff -C2 -d -r1.9 -r1.10
*** MBeanFeatureInfo.java	13 Nov 2004 16:38:21 -0000	1.9
--- MBeanFeatureInfo.java	14 May 2005 08:43:29 -0000	1.10
***************
*** 35,39 ****
      * @param description The description of the feature
      */
!    public MBeanFeatureInfo(String name, String description)
     {
        this.name = name;
--- 35,39 ----
      * @param description The description of the feature
      */
!    public MBeanFeatureInfo(String name, String description) throws IllegalArgumentException
     {
        this.name = name;

Index: MBeanOperationInfo.java
===================================================================
RCS file: /cvsroot/mx4j/mx4j/src/core/javax/management/MBeanOperationInfo.java,v
retrieving revision 1.13
retrieving revision 1.14
diff -C2 -d -r1.13 -r1.14
*** MBeanOperationInfo.java	13 Nov 2004 16:38:21 -0000	1.13
--- MBeanOperationInfo.java	14 May 2005 08:43:29 -0000	1.14
***************
*** 61,65 ****
      * @param method      The method
      */
!    public MBeanOperationInfo(String description, Method method)
     {
        super(method.getName(), description);
--- 61,65 ----
      * @param method      The method
      */
!    public MBeanOperationInfo(String description, Method method) throws IllegalArgumentException
     {
        super(method.getName(), description);
***************
*** 83,87 ****
      * @param impact      The operation impact
      */
!    public MBeanOperationInfo(String name, String description, MBeanParameterInfo[] signature, String type, int impact)
     {
        super(name, description);
--- 83,87 ----
      * @param impact      The operation impact
      */
!    public MBeanOperationInfo(String name, String description, MBeanParameterInfo[] signature, String type, int impact)  throws IllegalArgumentException
     {
        super(name, description);

Index: MBeanAttributeInfo.java
===================================================================
RCS file: /cvsroot/mx4j/mx4j/src/core/javax/management/MBeanAttributeInfo.java,v
retrieving revision 1.14
retrieving revision 1.15
diff -C2 -d -r1.14 -r1.15
*** MBeanAttributeInfo.java	13 Nov 2004 16:38:21 -0000	1.14
--- MBeanAttributeInfo.java	14 May 2005 08:43:29 -0000	1.15
***************
*** 91,94 ****
--- 91,95 ----
      */
     public MBeanAttributeInfo(String name, String className, String description, boolean isReadable, boolean isWritable, boolean isIs)
+            throws IllegalArgumentException
     {
        super(name, description);

Index: MBeanNotificationInfo.java
===================================================================
RCS file: /cvsroot/mx4j/mx4j/src/core/javax/management/MBeanNotificationInfo.java,v
retrieving revision 1.13
retrieving revision 1.14
diff -C2 -d -r1.13 -r1.14
*** MBeanNotificationInfo.java	13 Nov 2004 16:38:21 -0000	1.13
--- MBeanNotificationInfo.java	14 May 2005 08:43:29 -0000	1.14
***************
*** 36,40 ****
      * @param description The description for these notifications
      */
!    public MBeanNotificationInfo(String[] notifsType, String name, String description)
     {
        super(name, description);
--- 36,40 ----
      * @param description The description for these notifications
      */
!    public MBeanNotificationInfo(String[] notifsType, String name, String description) throws IllegalArgumentException
     {
        super(name, description);

Index: MBeanParameterInfo.java
===================================================================
RCS file: /cvsroot/mx4j/mx4j/src/core/javax/management/MBeanParameterInfo.java,v
retrieving revision 1.11
retrieving revision 1.12
diff -C2 -d -r1.11 -r1.12
*** MBeanParameterInfo.java	13 Nov 2004 16:38:21 -0000	1.11
--- MBeanParameterInfo.java	14 May 2005 08:43:29 -0000	1.12
***************
*** 34,38 ****
      * @param description The parameter description
      */
!    public MBeanParameterInfo(String name, String type, String description)
     {
        super(name, description);
--- 34,38 ----
      * @param description The parameter description
      */
!    public MBeanParameterInfo(String name, String type, String description) throws IllegalArgumentException
     {
        super(name, description);

Index: ObjectName.java
===================================================================
RCS file: /cvsroot/mx4j/mx4j/src/core/javax/management/ObjectName.java,v
retrieving revision 1.25
retrieving revision 1.26
diff -C2 -d -r1.25 -r1.26
*** ObjectName.java	8 Feb 2005 00:37:32 -0000	1.25
--- ObjectName.java	14 May 2005 08:43:29 -0000	1.26
***************
*** 70,74 ****
     private transient String canonicalName;
  
!    public ObjectName(String name) throws MalformedObjectNameException
     {
        if (name == null) throw new NullPointerException("ObjectName 'name' parameter can't be null");
--- 70,74 ----
     private transient String canonicalName;
  
!    public ObjectName(String name) throws NullPointerException, MalformedObjectNameException
     {
        if (name == null) throw new NullPointerException("ObjectName 'name' parameter can't be null");
***************
*** 77,81 ****
     }
  
!    public ObjectName(String domain, Hashtable table) throws MalformedObjectNameException
     {
        if (domain == null) throw new NullPointerException("ObjectName 'domain' parameter can't be null");
--- 77,81 ----
     }
  
!    public ObjectName(String domain, Hashtable table) throws NullPointerException, MalformedObjectNameException
     {
        if (domain == null) throw new NullPointerException("ObjectName 'domain' parameter can't be null");
***************
*** 98,102 ****
     }
  
!    public ObjectName(String domain, String key, String value) throws MalformedObjectNameException
     {
        if (domain == null) throw new NullPointerException("ObjectName 'domain' parameter can't be null");
--- 98,102 ----
     }
  
!    public ObjectName(String domain, String key, String value) throws NullPointerException, MalformedObjectNameException
     {
        if (domain == null) throw new NullPointerException("ObjectName 'domain' parameter can't be null");
***************
*** 112,116 ****
     }
  
!    public boolean apply(ObjectName name)
     {
        boolean result = false;
--- 112,116 ----
     }
  
!    public boolean apply(ObjectName name) throws NullPointerException
     {
        boolean result = false;
***************
*** 188,192 ****
     }
  
!    public String getKeyProperty(String key)
     {
        Map props = getPropertiesMap();
--- 188,192 ----
     }
  
!    public String getKeyProperty(String key) throws NullPointerException
     {
        Map props = getPropertiesMap();
***************
*** 232,236 ****
     }
  
!    public static ObjectName getInstance(ObjectName name)
     {
        if (name.getClass() == ObjectName.class) return name;
--- 232,236 ----
     }
  
!    public static ObjectName getInstance(ObjectName name) throws NullPointerException
     {
        if (name.getClass() == ObjectName.class) return name;
***************
*** 246,250 ****
     }
  
!    public static ObjectName getInstance(String name) throws MalformedObjectNameException
     {
        if (cacheEnabled)
--- 246,250 ----
     }
  
!    public static ObjectName getInstance(String name) throws NullPointerException, MalformedObjectNameException
     {
        if (cacheEnabled)
***************
*** 262,276 ****
     }
  
!    public static ObjectName getInstance(String domain, Hashtable table) throws MalformedObjectNameException
     {
        return new ObjectName(domain, table);
     }
  
!    public static ObjectName getInstance(String domain, String key, String value) throws MalformedObjectNameException
     {
        return new ObjectName(domain, key, value);
     }
  
!    public static String quote(String value)
     {
        StringBuffer buffer = new StringBuffer("\"");
--- 262,276 ----
     }
  
!    public static ObjectName getInstance(String domain, Hashtable table) throws NullPointerException, MalformedObjectNameException
     {
        return new ObjectName(domain, table);
     }
  
!    public static ObjectName getInstance(String domain, String key, String value) throws NullPointerException, MalformedObjectNameException
     {
        return new ObjectName(domain, key, value);
     }
  
!    public static String quote(String value) throws NullPointerException
     {
        StringBuffer buffer = new StringBuffer("\"");
***************
*** 304,308 ****
     }
  
!    public static String unquote(String value) throws IllegalArgumentException
     {
        int lastIndex = value.length() - 1;
--- 304,308 ----
     }
  
!    public static String unquote(String value) throws IllegalArgumentException, NullPointerException
     {
        int lastIndex = value.length() - 1;



-------------------------------------------------------
This SF.Net email is sponsored by Oracle Space Sweepstakes
Want to be the first software developer in space?
Enter now for the Oracle Space Sweepstakes!
http://ads.osdn.com/?ad_id=7393&alloc_id=16281&op=click