geronimo-scm mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From s..@geronimo.apache.org
Subject [Apache Geronimo Wiki] Updated: GBeans
Date Mon, 07 Feb 2005 14:48:30 GMT
   Date: 2005-02-07T06:48:30
   Editor: GeirMagnussonJr.
   Wiki: Apache Geronimo Wiki
   Page: GBeans
   URL: http://wiki.apache.org/geronimo/GBeans

   no comment

Change Log:

------------------------------------------------------------------------------
@@ -44,12 +44,12 @@
 public static final GBeanInfo GBEAN_INFO;
 
 static {
-    GBeanInfoFactory infoFactory = new GBeanInfoFactory("AxisGbean", AxisGbean.class);
-    infoFactory.addAttribute("name", String.class, true);
-    infoFactory.addAttribute("kernel", Kernel.class, false);
-    infoFactory.addOperation("echo", new Class[]{String.class});
-    infoFactory.setConstructor(new String[] {"kernel","Name"});
-    GBEAN_INFO = infoFactory.getBeanInfo();
+    GBeanInfoBuilder infoBuilder = new GBeanInfoBuilder("AxisGbean", AxisGbean.class);
+    infoBuilder.addAttribute("name", String.class, true);
+    infoBuilder.addAttribute("kernel", Kernel.class, false);
+    infoBuilder.addOperation("echo", new Class[]{String.class});
+    infoBuilder.setConstructor(new String[] {"kernel","Name"});
+    GBEAN_INFO = infoBuilder.getBeanInfo();
 }
 }}}
 
@@ -61,16 +61,16 @@
 package example1;
 
 import org.apache.geronimo.gbean.GBeanInfo;
-import org.apache.geronimo.gbean.GBeanInfoFactory;
+import org.apache.geronimo.gbean.GBeanInfoBuilder;
 
 public class MyGBean {
 
     public static final GBeanInfo GBEAN_INFO;
 
     static {
-        GBeanInfoFactory infoFactory = new GBeanInfoFactory("MyGBean", MyGBean.class);
+        GBeanInfoBuilder infoBuilder = new GBeanInfoBuilder("MyGBean", MyGBean.class);
 
-        GBEAN_INFO = infoFactory.getBeanInfo();
+        GBEAN_INFO = infoBuilder.getBeanInfo();
     }
 
     public static GBeanInfo getGBeanInfo() {

Mime
View raw message