Return-Path: Delivered-To: apmail-jakarta-commons-dev-archive@apache.org Received: (qmail 67695 invoked from network); 28 Feb 2003 04:52:46 -0000 Received: from exchange.sun.com (192.18.33.10) by daedalus.apache.org with SMTP; 28 Feb 2003 04:52:46 -0000 Received: (qmail 27697 invoked by uid 97); 28 Feb 2003 04:54:31 -0000 Delivered-To: qmlist-jakarta-archive-commons-dev@nagoya.betaversion.org Received: (qmail 27690 invoked from network); 28 Feb 2003 04:54:31 -0000 Received: from daedalus.apache.org (HELO apache.org) (208.185.179.12) by nagoya.betaversion.org with SMTP; 28 Feb 2003 04:54:31 -0000 Received: (qmail 67513 invoked by uid 500); 28 Feb 2003 04:52:45 -0000 Mailing-List: contact commons-dev-help@jakarta.apache.org; run by ezmlm Precedence: bulk List-Unsubscribe: List-Subscribe: List-Help: List-Post: List-Id: "Jakarta Commons Developers List" Reply-To: "Jakarta Commons Developers List" Delivered-To: mailing list commons-dev@jakarta.apache.org Received: (qmail 67501 invoked by uid 500); 28 Feb 2003 04:52:44 -0000 Received: (qmail 67497 invoked from network); 28 Feb 2003 04:52:44 -0000 Received: from icarus.apache.org (208.185.179.13) by daedalus.apache.org with SMTP; 28 Feb 2003 04:52:44 -0000 Received: (qmail 29460 invoked by uid 1052); 28 Feb 2003 04:52:43 -0000 Date: 28 Feb 2003 04:52:43 -0000 Message-ID: <20030228045243.29455.qmail@icarus.apache.org> From: costin@apache.org To: jakarta-commons-cvs@apache.org Subject: cvs commit: jakarta-commons/modeler/src/java/org/apache/commons/modeler Main.java X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N 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