|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface DataSourceFactory
This interface is used by a DatabaseServer to construct a DataSource from its configuration. Implementations of this class will
typically use the configuration (jdbc url and extra properties) in
combination with a third-party database connection pool library to
instantiate a DataSource object. The implementation must also
provide a way to close this data source.
| Method Summary | |
|---|---|
void |
close(DataSource previouslyConstructedDataSource)
Closes a DataSource previously created by newDataSource on this
object. |
DataSource |
newDataSource(String jdbcUrl,
Properties properties)
Creates a new DataSource using supplied connection configuration |
| Method Detail |
|---|
DataSource newDataSource(String jdbcUrl,
Properties properties)
DataSource using supplied connection configuration
jdbcUrl - JDBC url to connect toproperties - Extra connection properties (should contain username
and password, at least)
void close(DataSource previouslyConstructedDataSource)
DataSource previously created by newDataSource on this
object.
previouslyConstructedDataSource - Data source to close
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||