1 package org.apache.ojb.broker.accesslayer; 2 3 17 18 import org.apache.ojb.broker.PersistenceBroker; 19 import org.apache.ojb.broker.util.factory.ConfigurableFactory; 20 21 26 public class StatementManagerFactory extends ConfigurableFactory 27 { 28 private static StatementManagerFactory singleton; 29 30 public static synchronized StatementManagerFactory getInstance() 31 { 32 if (singleton == null) 33 { 34 singleton = new StatementManagerFactory(); 35 } 36 return singleton; 37 } 38 39 protected String getConfigurationKey() 40 { 41 return "StatementManagerClass"; 42 } 43 44 public StatementManagerIF createStatementManager(PersistenceBroker broker) 45 { 46 return (StatementManagerIF) createNewInstance(PersistenceBroker.class, broker); 47 } 48 } 49 | Popular Tags |