Rename a few setup methods to configure

Fixes gh-537
This commit is contained in:
Phillip Webb
2014-03-21 11:25:31 -07:00
parent 701bb6ee0a
commit 03667c7ddc
2 changed files with 9 additions and 7 deletions

View File

@@ -51,11 +51,11 @@ public class CommonsDataSourceConfiguration extends AbstractDataSourceConfigurat
public DataSource dataSource() {
logger.info("Hint: using Commons DBCP BasicDataSource. It's going to work, "
+ "but the Tomcat DataSource is more reliable.");
this.pool = createAndSetupPool();
this.pool = createAndConfigurePool();
return this.pool;
}
private BasicDataSource createAndSetupPool() {
private BasicDataSource createAndConfigurePool() {
BasicDataSource pool = new BasicDataSource();
pool.setDriverClassName(getDriverClassName());
pool.setUrl(getUrl());