Class DataSourceProvider
- java.lang.Object
-
- com.avoka.core.service.initialization.DataSourceProvider
-
public class DataSourceProvider extends Object
Provides access to a ThreadLocal JDBC DataSource object.
-
-
Constructor Summary
Constructors Constructor Description DataSourceProvider()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static DataSource
getDataSource()
Return a ThreadLocal DataSource object.static void
setDataSource(DataSource dataSource)
Sets a ThreadLocal DataSource object.
-
-
-
Method Detail
-
getDataSource
public static DataSource getDataSource()
Return a ThreadLocal DataSource object.- Returns:
- a ThreadLocal DataSource object.
-
setDataSource
public static void setDataSource(DataSource dataSource)
Sets a ThreadLocal DataSource object.- Parameters:
dataSource
- set the ThreadLocal data source object.
-
-