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 Details

    • DataSourceProvider

      public DataSourceProvider()
  • Method Details

    • 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.