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 a
DataSource.- Author:
- Daniel Sagenschneider
-
Method Summary
Modifier and TypeMethodDescriptioncreateDataSource(SourceContext context) Creates theDataSource.
-
Method Details
-
createDataSource
Creates theDataSource.- Parameters:
context-SourceContextto configure theDataSource.- Returns:
DataSource.- Throws:
Exception- If fails to create theDataSource.
-