1 17 18 package org.apache.geronimo.connector; 19 20 import java.util.Map ; 21 22 import org.apache.geronimo.gbean.GBeanData; 23 import org.apache.geronimo.gbean.GBeanInfo; 24 import org.apache.geronimo.gbean.GBeanInfoBuilder; 25 import org.apache.geronimo.j2ee.j2eeobjectnames.NameFactory; 26 import org.apache.geronimo.management.J2EEApplication; 27 import org.apache.geronimo.management.J2EEServer; 28 import org.apache.geronimo.management.geronimo.ResourceAdapter; 29 import org.apache.geronimo.management.geronimo.ResourceAdapterModule; 30 31 34 public class ResourceAdapterModuleImplGBean { 35 36 public static final GBeanInfo GBEAN_INFO; 37 38 static { 39 GBeanInfoBuilder infoBuilder = GBeanInfoBuilder.createStatic(ResourceAdapterModuleImplGBean.class, ResourceAdapterModuleImpl.class, NameFactory.RESOURCE_ADAPTER_MODULE); 40 infoBuilder.addReference("J2EEServer", J2EEServer.class, null); 41 infoBuilder.addReference("J2EEApplication", J2EEApplication.class, null); 42 43 infoBuilder.addAttribute("deploymentDescriptor", String .class, true); 44 45 infoBuilder.addReference("ResourceAdapter", ResourceAdapter.class, NameFactory.RESOURCE_ADAPTER); 46 infoBuilder.addAttribute("objectName", String .class, false); 47 infoBuilder.addAttribute("server", String .class, false); 48 infoBuilder.addAttribute("application", String .class, false); 49 infoBuilder.addAttribute("javaVMs", String [].class, false); 50 infoBuilder.addAttribute("resourceAdapters", String [].class, false); 51 52 infoBuilder.addAttribute("resourceAdapterGBeanData", GBeanData.class, true); 53 infoBuilder.addAttribute("activationSpecInfoMap", Map .class, true); 54 infoBuilder.addAttribute("adminObjectInfoMap", Map .class, true); 55 infoBuilder.addAttribute("managedConnectionFactoryInfoMap", Map .class, true); 56 57 infoBuilder.addAttribute("displayName", String .class, true, false); 58 infoBuilder.addAttribute("description", String .class, true, false); 59 infoBuilder.addAttribute("vendorName", String .class, true, false); 60 infoBuilder.addAttribute("EISType", String .class, true, false); 61 infoBuilder.addAttribute("resourceAdapterVersion", String .class, true, false); 62 63 64 infoBuilder.addInterface(ResourceAdapterModule.class); 65 66 infoBuilder.setConstructor(new String []{ 67 "objectName", 68 "ResourceAdapter", 69 "J2EEServer", 70 "J2EEApplication", 71 "deploymentDescriptor", 72 "resourceAdapterGBeanData", 73 "activationSpecInfoMap", 74 "adminObjectInfoMap", 75 "managedConnectionFactoryInfoMap", 76 "displayName", 77 "description", 78 "vendorName", 79 "resourceAdapterVersion", 80 "EISType" 81 }); 82 83 GBEAN_INFO = infoBuilder.getBeanInfo(); 84 } 85 86 public static GBeanInfo getGBeanInfo() { 87 return GBEAN_INFO; 88 } 89 90 } 91 | Popular Tags |