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