Package net.officefloor.jdbc.datasource
Interface DataSourceFactory
-
- All Known Subinterfaces:
H2DataSourceFactory,PostgreSqlDataSourceFactory
- All Known Implementing Classes:
DefaultDataSourceFactory,H2DataSourceManagedObjectSource,H2ReadOnlyConnectionManagedObjectSource,PostgreSqlDataSourceManagedObjectSource,PostgreSqlReadOnlyConnectionManagedObjectSource
public interface DataSourceFactoryFactory for the creation of aDataSource.- Author:
- Daniel Sagenschneider
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description javax.sql.DataSourcecreateDataSource(SourceContext context)Creates theDataSource.
-
-
-
Method Detail
-
createDataSource
javax.sql.DataSource createDataSource(SourceContext context) throws java.lang.Exception
Creates theDataSource.- Parameters:
context-SourceContextto configure theDataSource.- Returns:
DataSource.- Throws:
java.lang.Exception- If fails to create theDataSource.
-
-