1 17 18 package org.apache.geronimo.connector; 19 20 import org.apache.geronimo.gbean.GBeanInfo; 21 import org.apache.geronimo.gbean.GBeanInfoBuilder; 22 import org.apache.geronimo.gbean.AbstractName; 23 import org.apache.geronimo.j2ee.j2eeobjectnames.NameFactory; 24 import org.apache.geronimo.kernel.Kernel; 25 import org.apache.geronimo.management.geronimo.JCAAdminObject; 26 27 31 public class AdminObjectWrapperGBean { 32 33 public static final GBeanInfo GBEAN_INFO; 34 35 static { 36 GBeanInfoBuilder infoBuilder = GBeanInfoBuilder.createStatic(AdminObjectWrapperGBean.class, AdminObjectWrapper.class, NameFactory.JCA_ADMIN_OBJECT); 37 infoBuilder.addAttribute("adminObjectInterface", String .class, true); 38 infoBuilder.addAttribute("adminObjectClass", String .class, true); 39 infoBuilder.addAttribute("kernel", Kernel.class, false); 40 infoBuilder.addAttribute("abstractName", AbstractName.class, false); 41 infoBuilder.addAttribute("objectName", String .class, false); 42 infoBuilder.addAttribute("classLoader", ClassLoader .class, false); 43 44 infoBuilder.addOperation("$getResource"); 45 infoBuilder.addInterface(JCAAdminObject.class); 46 47 infoBuilder.setConstructor(new String []{ 48 "adminObjectInterface", 49 "adminObjectClass", 50 "kernel", 51 "abstractName", 52 "objectName", 53 "classLoader" 54 }); 55 56 GBEAN_INFO = infoBuilder.getBeanInfo(); 57 } 58 59 public static GBeanInfo getGBeanInfo() { 60 return GBEAN_INFO; 61 } 62 63 } 64 | Popular Tags |