@Singleton public class DefaultConnectionPool extends java.lang.Object implements ConnectionPool
Constructor and Description |
---|
DefaultConnectionPool(play.api.db.ConnectionPool connectionPool) |
Modifier and Type | Method and Description |
---|---|
void |
close(javax.sql.DataSource dataSource)
Close the given data source.
|
javax.sql.DataSource |
create(java.lang.String name,
Configuration configuration,
java.lang.ClassLoader classLoader)
Create a data source with the given configuration.
|
@Inject public DefaultConnectionPool(play.api.db.ConnectionPool connectionPool)
public javax.sql.DataSource create(java.lang.String name, Configuration configuration, java.lang.ClassLoader classLoader)
ConnectionPool
create
in interface ConnectionPool
name
- the database nameconfiguration
- the data source configurationclassLoader
- the database class loaderpublic void close(javax.sql.DataSource dataSource)
ConnectionPool
close
in interface ConnectionPool
dataSource
- the data source to close