Class QuartzConnectionProvider

java.lang.Object
org.bonitasoft.engine.platform.configuration.datasource.QuartzConnectionProvider
All Implemented Interfaces:
org.quartz.utils.ConnectionProvider

public class QuartzConnectionProvider extends Object implements org.quartz.utils.ConnectionProvider
This is a hack to let Quartz access datasource beans from SprigContext Quartz support custom connection providers but not non primitive parameters for them
  • Constructor Details

    • QuartzConnectionProvider

      public QuartzConnectionProvider()
  • Method Details

    • setXaDataSource

      public void setXaDataSource(boolean isXaDataSource)
      this is called by quartz (given by the configuration)
      Parameters:
      isXaDataSource - true if the datasource returned by this configuration provider should be the xa datasource
    • getConnection

      public Connection getConnection() throws SQLException
      Specified by:
      getConnection in interface org.quartz.utils.ConnectionProvider
      Throws:
      SQLException
    • shutdown

      public void shutdown() throws SQLException
      Specified by:
      shutdown in interface org.quartz.utils.ConnectionProvider
      Throws:
      SQLException
    • initialize

      public void initialize() throws SQLException
      Specified by:
      initialize in interface org.quartz.utils.ConnectionProvider
      Throws:
      SQLException