1 package org.hibernate.ejb; 3 4 import java.util.Map ; 5 import java.util.Properties ; 6 7 import org.hibernate.cfg.SettingsFactory; 8 import org.hibernate.connection.ConnectionProvider; 9 import org.hibernate.connection.ConnectionProviderFactory; 10 11 14 public class InjectionSettingsFactory extends SettingsFactory { 15 private Map connectionProviderInjectionData; 16 17 23 public void setConnectionProviderInjectionData(Map connectionProviderInjectionData) { 24 this.connectionProviderInjectionData = connectionProviderInjectionData; 25 } 26 27 protected ConnectionProvider createConnectionProvider(Properties properties) { 28 return ConnectionProviderFactory.newConnectionProvider( properties, connectionProviderInjectionData ); 29 } 30 } 31 | Popular Tags |