Package org.frankframework.jdbc
Interface IDataSourceFactory
- All Known Implementing Classes:
AbstractXADataSourceFactory
,DataSourceFactory
,LadyBugDataSourceFactory
,NarayanaDataSourceFactory
,NonTransactionalDataSourceFactory
,PoolingDataSourceFactory
public interface IDataSourceFactory
-
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptiondefault DataSource
getDataSource
(String dataSourceName) Look up aDataSource
by name.getDataSource
(String dataSourceName, Properties jndiEnvironment) Look up aDataSource
by name with optional JNDI Environment or other additional properties to be used for the lookup of the datasource.Return all known/registered DataSources
-
Field Details
-
DEFAULT_DATASOURCE_NAME_PROPERTY
- See Also:
-
GLOBAL_DEFAULT_DATASOURCE_NAME
-
-
Method Details
-
getDataSource
@Nonnull default DataSource getDataSource(String dataSourceName) throws IllegalStateException, NoSuchElementException Look up aDataSource
by name.- Throws:
NoSuchElementException
- if the DataSource cannot be found in any of the configured sourcesIllegalStateException
- if the DataSource cannot be created
-
getDataSource
@Nonnull DataSource getDataSource(String dataSourceName, Properties jndiEnvironment) throws IllegalStateException, NoSuchElementException Look up aDataSource
by name with optional JNDI Environment or other additional properties to be used for the lookup of the datasource.- Throws:
NoSuchElementException
- if the DataSource cannot be found in any of the configured sourcesIllegalStateException
- if the DataSource cannot be created- See Also:
-
getDataSourceNames
Return all known/registered DataSources
-