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 Main.java
Date Fri, 28 Feb 2003 04:52:43 GMT
costin      2003/02/27 20:52:43

  Modified:    modeler/src/java/org/apache/commons/modeler Main.java
  Log:
  Use the new methods to execute init/start on all mbeans in the file.
  
  That makes the behavior very similar with other tools.
  
  Revision  Changes    Path
  1.4       +9 -4      jakarta-commons/modeler/src/java/org/apache/commons/modeler/Main.java
  
  Index: Main.java
  ===================================================================
  RCS file: /home/cvs/jakarta-commons/modeler/src/java/org/apache/commons/modeler/Main.java,v
  retrieving revision 1.3
  retrieving revision 1.4
  diff -u -r1.3 -r1.4
  --- Main.java	21 Jan 2003 00:33:45 -0000	1.3
  +++ Main.java	28 Feb 2003 04:52:43 -0000	1.4
  @@ -70,6 +70,7 @@
   import java.io.FileInputStream;
   import java.io.File;
   import java.net.URL;
  +import java.util.List;
   
   
   /**
  @@ -119,7 +120,11 @@
           File fileF=new File( file );
           URL url=new URL("file", null, fileF.getAbsolutePath());
   
  -        reg.loadDescriptors( type, url, null);
  +        // Load the mbeans defined in the file and set all
  +        // attributes
  +        List mbeans=reg.load( type, url, null);
  +        reg.invoke(mbeans, "init", false);
  +        reg.invoke(mbeans, "start", false);
       }
   
       public static void main( String args[] ) {
  
  
  

---------------------------------------------------------------------
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