1 17 18 package org.apache.geronimo.connector.outbound.transactionlog; 19 20 import org.apache.geronimo.connector.outbound.ConnectionFactorySource; 21 import org.apache.geronimo.gbean.GBeanInfo; 22 import org.apache.geronimo.gbean.GBeanInfoBuilder; 23 import org.apache.geronimo.j2ee.j2eeobjectnames.NameFactory; 24 import org.apache.geronimo.transaction.manager.TransactionLog; 25 26 30 public class JDBCLogGBean { 31 32 public static final GBeanInfo GBEAN_INFO; 33 34 static { 35 GBeanInfoBuilder infoFactory = GBeanInfoBuilder.createStatic(JDBCLogGBean.class, JDBCLog.class, NameFactory.JCA_RESOURCE); 36 37 infoFactory.addAttribute("systemId", String .class, true); 38 39 infoFactory.addInterface(TransactionLog.class); 40 41 infoFactory.addReference("ConnectionFactorySource", ConnectionFactorySource.class, NameFactory.JCA_MANAGED_CONNECTION_FACTORY); 42 43 infoFactory.setConstructor(new String []{"systemId", "ConnectionFactorySource"}); 44 45 GBEAN_INFO = infoFactory.getBeanInfo(); 46 } 47 48 public static GBeanInfo getGBeanInfo() { 49 return GBEAN_INFO; 50 } 51 52 } 53 | Popular Tags |