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 JdbcAccessFactory extends ConfigurableFactory 27 { 28 private static JdbcAccessFactory singleton; 29 30 public static synchronized JdbcAccessFactory getInstance() 31 { 32 if (singleton == null) 33 { 34 singleton = new JdbcAccessFactory(); 35 } 36 return singleton; 37 } 38 39 protected String getConfigurationKey() 40 { 41 return "JdbcAccessClass"; 42 } 43 44 public JdbcAccess createJdbcAccess(PersistenceBroker broker) 45 { 46 return (JdbcAccess) createNewInstance(PersistenceBroker.class, broker); 47 } 48 } 49 | Popular Tags |