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.j2ee.j2eeobjectnames.NameFactory; 23 import org.apache.geronimo.management.geronimo.ResourceAdapter; 24 import org.apache.geronimo.management.geronimo.JCAResource; 25 26 public class ResourceAdapterImplGBean { 27 28 public static final GBeanInfo GBEAN_INFO; 29 30 static { 31 GBeanInfoBuilder infoBuilder = GBeanInfoBuilder.createStatic(ResourceAdapterImplGBean.class, ResourceAdapterImpl.class, NameFactory.RESOURCE_ADAPTER); 32 infoBuilder.addAttribute("objectName", String .class, false); 33 infoBuilder.addReference("JCAResource", JCAResource.class, NameFactory.JCA_RESOURCE); 34 infoBuilder.addAttribute("JCAResources", String [].class, false); 35 infoBuilder.addInterface(ResourceAdapter.class); 36 37 infoBuilder.setConstructor(new String []{ 38 "objectName", 39 "JCAResource" 40 }); 41 42 GBEAN_INFO = infoBuilder.getBeanInfo(); 43 } 44 45 public static GBeanInfo getGBeanInfo() { 46 return GBEAN_INFO; 47 } 48 49 } 50 | Popular Tags |