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 30 public class ConnectionManagerFactory extends ConfigurableFactory 31 { 32 private static ConnectionManagerFactory singleton; 33 34 public static synchronized ConnectionManagerFactory getInstance() 35 { 36 if (singleton == null) 37 { 38 singleton = new ConnectionManagerFactory(); 39 } 40 return singleton; 41 } 42 43 protected String getConfigurationKey() 44 { 45 return "ConnectionManagerClass"; 46 } 47 48 public ConnectionManagerIF createConnectionManager(PersistenceBroker broker) 49 { 50 return (ConnectionManagerIF) createNewInstance(PersistenceBroker.class, broker); 51 } 52 } 53 | Popular Tags |