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
Date Thu, 26 Dec 2002 18:07:36 GMT
costin      2002/12/26 10:07:36

  Modified:    modeler/src/java/org/apache/commons/modeler/ant JmxSet.java
  Log:
  More consistent names
  
  Revision  Changes    Path
  1.3       +10 -5     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.2
  retrieving revision 1.3
  diff -u -r1.2 -r1.3
  --- JmxSet.java	13 Nov 2002 06:27:22 -0000	1.2
  +++ JmxSet.java	26 Dec 2002 18:07:36 -0000	1.3
  @@ -73,7 +73,7 @@
       String value;
       String valueRef;
       Object objValue;
  -    String name;
  +    String objectName;
       String type;
   
   
  @@ -88,6 +88,10 @@
           this.value = value;
       }
   
  +    public void addText( String value ) {
  +        this.value=value;
  +    }
  +
       public void setValueRef(String valueRef) {
           this.valueRef = valueRef;
       }
  @@ -100,8 +104,8 @@
           this.objValue = objValue;
       }
   
  -    public void setName(String name) {
  -        this.name = name;
  +    public void setObjectName(String name) {
  +        this.objectName = name;
       }
   
   
  @@ -113,13 +117,14 @@
                   if( MBeanServerFactory.findMBeanServer(null).size() > 0 ) {
                       server=(MBeanServer)MBeanServerFactory.findMBeanServer(null).get(0);
                   } else {
  -                    System.out.println("Creating mbean server");
  +                    if( log.isDebugEnabled())
  +                        log.debug("Creating mbean server");
                       server=MBeanServerFactory.createMBeanServer();
                   }
                   project.addReference("jmx.server", server);
               }
   
  -            ObjectName oname=new ObjectName(name);
  +            ObjectName oname=new ObjectName(objectName);
   
               // XXX convert value, use meta data to find type
               if( objValue==null && valueRef != null ) {
  
  
  

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


Mime
View raw message