1 package org.apache.ojb.odmg; 2 3 17 18 import org.apache.ojb.broker.util.factory.ConfigurableFactory; 19 20 28 public class TxManagerFactory extends ConfigurableFactory 29 { 30 private static TxManagerFactory singleton; 31 private OJBTxManager manager; 32 33 static 34 { 35 singleton = new TxManagerFactory(); 36 } 37 38 private TxManagerFactory() 39 { 40 manager = (OJBTxManager) this.createNewInstance(); 41 } 42 43 private OJBTxManager getManager() 44 { 45 return manager; 46 } 47 48 public synchronized static OJBTxManager instance() 49 { 50 return singleton.getManager(); 51 } 52 53 protected String getConfigurationKey() 54 { 55 return "OJBTxManagerClass"; 56 } 57 } 58 | Popular Tags |