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 Sun, 13 Apr 2003 17:34:39 GMT
costin      2003/04/13 10:34:39

  Modified:    modeler/src/java/org/apache/commons/modeler Main.java
  Log:
  remove unused option.
  
  Revision  Changes    Path
  1.6       +4 -11     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.5
  retrieving revision 1.6
  diff -u -r1.5 -r1.6
  --- Main.java	7 Apr 2003 06:43:19 -0000	1.5
  +++ Main.java	13 Apr 2003 17:34:39 -0000	1.6
  @@ -81,8 +81,6 @@
    *  Arguments:
    *   -file FILE
    *       Will load mbeans from the file
  - *   -type TYPE
  - *       Type of the mbeans file
    *
    * @author Costin Manolache
    */
  @@ -91,7 +89,6 @@
   {
       String file;
       String home;
  -    String type="MbeansSource";
   
       public void setFile( String f ) {
           this.file=f;
  @@ -102,10 +99,6 @@
           this.file=f;
       }
   
  -    public void setType( String type ) {
  -        this.type=type;
  -    }
  -
       public void execute( )
           throws Exception
       {
  @@ -122,7 +115,7 @@
   
           // Load the mbeans defined in the file and set all
           // attributes
  -        List mbeans=reg.load( type, url, null);
  +        List mbeans=reg.loadMBeans( url, null);
           reg.invoke(mbeans, "init", false);
           reg.invoke(mbeans, "start", false);
       }
  
  
  

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