geronimo-scm mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From gdam...@apache.org
Subject cvs commit: incubator-geronimo/modules/kernel/src/java/org/apache/geronimo/gbean/jmx JMXSetAttributeInvoker.java JMXGetAttributeInvoker.java
Date Wed, 14 Jul 2004 00:27:43 GMT
gdamour     2004/07/13 17:27:42

  Modified:    modules/kernel/src/java/org/apache/geronimo/gbean/jmx
                        JMXSetAttributeInvoker.java
                        JMXGetAttributeInvoker.java
  Log:
  Roll-backs my change as it breaks the JMX standard MBean conventions.
  
  Revision  Changes    Path
  1.3       +2 -3      incubator-geronimo/modules/kernel/src/java/org/apache/geronimo/gbean/jmx/JMXSetAttributeInvoker.java
  
  Index: JMXSetAttributeInvoker.java
  ===================================================================
  RCS file: /home/cvs/incubator-geronimo/modules/kernel/src/java/org/apache/geronimo/gbean/jmx/JMXSetAttributeInvoker.java,v
  retrieving revision 1.2
  retrieving revision 1.3
  diff -u -r1.2 -r1.3
  --- JMXSetAttributeInvoker.java	12 Jul 2004 06:07:51 -0000	1.2
  +++ JMXSetAttributeInvoker.java	14 Jul 2004 00:27:42 -0000	1.3
  @@ -17,7 +17,6 @@
   
   package org.apache.geronimo.gbean.jmx;
   
  -import java.beans.Introspector;
   import java.lang.reflect.Method;
   import javax.management.Attribute;
   import javax.management.MBeanException;
  @@ -38,7 +37,7 @@
   
       public JMXSetAttributeInvoker(MBeanServerConnection server, Method method) {
           this.server = server;
  -        name = Introspector.decapitalize(method.getName().substring(3));
  +        name = method.getName().substring(3);
   
           declaredExceptions = method.getExceptionTypes();
       }
  
  
  
  1.3       +3 -6      incubator-geronimo/modules/kernel/src/java/org/apache/geronimo/gbean/jmx/JMXGetAttributeInvoker.java
  
  Index: JMXGetAttributeInvoker.java
  ===================================================================
  RCS file: /home/cvs/incubator-geronimo/modules/kernel/src/java/org/apache/geronimo/gbean/jmx/JMXGetAttributeInvoker.java,v
  retrieving revision 1.2
  retrieving revision 1.3
  diff -u -r1.2 -r1.3
  --- JMXGetAttributeInvoker.java	12 Jul 2004 06:07:51 -0000	1.2
  +++ JMXGetAttributeInvoker.java	14 Jul 2004 00:27:42 -0000	1.3
  @@ -17,7 +17,6 @@
   
   package org.apache.geronimo.gbean.jmx;
   
  -import java.beans.Introspector;
   import java.lang.reflect.Method;
   import javax.management.MBeanException;
   import javax.management.MBeanServerConnection;
  @@ -38,13 +37,11 @@
       public JMXGetAttributeInvoker(MBeanServerConnection server, Method method) {
           this.server = server;
   
  -        String tmpName;
           if (method.getName().startsWith("is")) {
  -            tmpName = method.getName().substring(2);
  +            name = method.getName().substring(2);
           } else {
  -            tmpName = method.getName().substring(3);
  +            name = method.getName().substring(3);
           }
  -        name = Introspector.decapitalize(tmpName);
           
           declaredExceptions = method.getExceptionTypes();
       }
  
  
  

Mime
View raw message