1 17 18 package org.apache.geronimo.kernel.config; 19 20 import org.apache.geronimo.gbean.GBeanInfo; 21 import org.apache.geronimo.gbean.GBeanInfoBuilder; 22 23 26 public class MyGBean { 27 public void main(String [] args) { 28 System.out.println("Hello World"); 29 } 30 31 public static final GBeanInfo GBEAN_INFO; 32 33 static { 34 GBeanInfoBuilder infoFactory = GBeanInfoBuilder.createStatic(MyGBean.class); 35 infoFactory.addOperation("main", new Class []{String [].class}, "void"); 36 GBEAN_INFO = infoFactory.getBeanInfo(); 37 } 38 } 39 | Popular Tags |