Class DataSourceProvider
java.lang.Object
com.avoka.core.service.initialization.DataSourceProvider
Provides access to a ThreadLocal JDBC DataSource object.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic DataSource
Return a ThreadLocal DataSource object.static void
setDataSource
(DataSource dataSource) Sets a ThreadLocal DataSource object.
-
Constructor Details
-
DataSourceProvider
public DataSourceProvider()
-
-
Method Details
-
getDataSource
Return a ThreadLocal DataSource object.- Returns:
- a ThreadLocal DataSource object.
-
setDataSource
Sets a ThreadLocal DataSource object.- Parameters:
dataSource
- set the ThreadLocal data source object.
-