commons-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From cos...@apache.org
Subject cvs commit: jakarta-commons/modeler/src/java/org/apache/commons/modeler/ant JmxSet.java MLETTask.java
Date Fri, 28 Feb 2003 21:24:35 GMT
costin      2003/02/28 13:24:35

  Modified:    modeler/src/java/org/apache/commons/modeler Registry.java
               modeler/src/java/org/apache/commons/modeler/ant JmxSet.java
                        MLETTask.java
  Log:
  Few more fixes.
  
  Revision  Changes    Path
  1.22      +2 -0      jakarta-commons/modeler/src/java/org/apache/commons/modeler/Registry.java
  
  Index: Registry.java
  ===================================================================
  RCS file: /home/cvs/jakarta-commons/modeler/src/java/org/apache/commons/modeler/Registry.java,v
  retrieving revision 1.21
  retrieving revision 1.22
  diff -u -r1.21 -r1.22
  --- Registry.java	28 Feb 2003 04:56:32 -0000	1.21
  +++ Registry.java	28 Feb 2003 21:24:35 -0000	1.22
  @@ -365,6 +365,8 @@
                       oN=new ObjectName( (String)current );
                   }
                   if( oN==null ) continue;
  +                if( getMethodInfo(oN, operation) == null)
  +                    continue;
                   getMBeanServer().invoke(oN, operation,
                           new Object[] {}, new String[] {});
   
  
  
  
  1.6       +7 -4      jakarta-commons/modeler/src/java/org/apache/commons/modeler/ant/JmxSet.java
  
  Index: JmxSet.java
  ===================================================================
  RCS file: /home/cvs/jakarta-commons/modeler/src/java/org/apache/commons/modeler/ant/JmxSet.java,v
  retrieving revision 1.5
  retrieving revision 1.6
  diff -u -r1.5 -r1.6
  --- JmxSet.java	28 Feb 2003 04:54:35 -0000	1.5
  +++ JmxSet.java	28 Feb 2003 21:24:35 -0000	1.6
  @@ -143,20 +143,23 @@
                    if( type==null || "java.lang.String".equals( type )) {
                        // string is default
                        objValue=value;
  -                 } else if( "ObjectName".equals( type )) {
  +                 } else if( "javax.management.ObjectName".equals( type ) ||
  +                         "ObjectName".equals( type )) {
                        if( log.isTraceEnabled())
                           log.trace("Convert to ObjectName " + value);
                        objValue=new ObjectName( value );
  -                 } else if( "int".equals( type )) {
  +                 } else if( "java.lang.Integer".equals( type ) ||
  +                         "int".equals( type )) {
                        objValue=new Integer( value );
  -                 } else if( "boolean".equals( type )) {
  +                 } else if( "java.lang.Boolean".equals( type ) ||
  +                         "boolean".equals( type )) {
                        objValue=new Boolean( value );
                    }
   
               }
               if( log.isDebugEnabled())
                   log.debug("Setting " + oname + " " + attribute + " " +
  -                        objValue );
  +                        objValue);
               server.setAttribute(oname, new Attribute(attribute, objValue));
   
           } catch(Exception ex) {
  
  
  
  1.5       +1 -0      jakarta-commons/modeler/src/java/org/apache/commons/modeler/ant/MLETTask.java
  
  Index: MLETTask.java
  ===================================================================
  RCS file: /home/cvs/jakarta-commons/modeler/src/java/org/apache/commons/modeler/ant/MLETTask.java,v
  retrieving revision 1.4
  retrieving revision 1.5
  diff -u -r1.4 -r1.5
  --- MLETTask.java	28 Feb 2003 04:54:35 -0000	1.4
  +++ MLETTask.java	28 Feb 2003 21:24:35 -0000	1.5
  @@ -194,6 +194,7 @@
           } else {
               server.createMBean(code, oname, argsA, sigA );
           }
  +        log.debug( "Created MBEAN " + oname + " " + code);
       }
   
       public ObjectName getObjectName() {
  
  
  

---------------------------------------------------------------------
To unsubscribe, e-mail: commons-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: commons-dev-help@jakarta.apache.org


Mime
View raw message