Skip to content

Commit cd4a664

Browse files
committed
#20 - ENH: Provide a static factory via DataSourceFactory
1 parent ddec246 commit cd4a664

3 files changed

Lines changed: 3 additions & 26 deletions

File tree

src/main/java/io/ebean/datasource/core/DataSourcePoolFactory.java

Lines changed: 0 additions & 24 deletions
This file was deleted.

src/main/java/io/ebean/datasource/core/Factory.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
package io.ebean.datasource.core;
22

3-
import io.ebean.datasource.pool.ConnectionPool;
43
import io.ebean.datasource.DataSourceConfig;
54
import io.ebean.datasource.DataSourceFactory;
65
import io.ebean.datasource.DataSourcePool;
6+
import io.ebean.datasource.pool.ConnectionPool;
77

88
/**
99
* Service factory implementation.

src/test/java/io/ebean/datasource/core/DataSourcePoolFactoryTest.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
package io.ebean.datasource.core;
22

33
import io.ebean.datasource.DataSourceConfig;
4+
import io.ebean.datasource.DataSourceFactory;
45
import io.ebean.datasource.DataSourcePool;
56
import org.testng.annotations.Test;
67

@@ -18,7 +19,7 @@ public void createPool() throws Exception {
1819
config.setUsername("sa");
1920
config.setPassword("");
2021

21-
DataSourcePool pool = DataSourcePoolFactory.create("test_factory", config);
22+
DataSourcePool pool = DataSourceFactory.create("test_factory", config);
2223

2324
try (Connection connection = pool.getConnection()) {
2425
try (PreparedStatement stmt = connection.prepareStatement("create table junk (acol varchar(10))")) {

0 commit comments

Comments
 (0)