improve compatible for DBCP

This commit is contained in:
wenshao
2012-10-20 05:08:04 +08:00
parent 3c04c2d06b
commit 26e3fa3987
5 changed files with 53 additions and 4 deletions
@@ -109,7 +109,13 @@ public class DruidDataSourceFactory implements ObjectFactory {
}
}
return createDataSource(properties);
return createDataSourceInternal(properties);
}
protected DataSource createDataSourceInternal(Properties properties) throws Exception {
DruidDataSource dataSource = new DruidDataSource();
config(dataSource, properties);
return dataSource;
}
@SuppressWarnings("rawtypes")