Interface IDataSourceFactory
- All Known Implementing Classes:
AbstractXADataSourceFactory, DataSourceFactory, LadyBugDataSourceFactory, NarayanaDataSourceFactory, NonTransactionalDataSourceFactory, PoolingDataSourceFactory
public interface IDataSourceFactory
-
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptiondefault @NonNull DataSourcegetDataSource(String dataSourceName) Look up aDataSourceby name.@NonNull DataSourcegetDataSource(String dataSourceName, Properties jndiEnvironment) Look up aDataSourceby 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
default @NonNull DataSource getDataSource(String dataSourceName) throws IllegalStateException, NoSuchElementException Look up aDataSourceby 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 aDataSourceby 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
-