Class QuartzConnectionProvider
- java.lang.Object
-
- org.bonitasoft.engine.platform.configuration.datasource.QuartzConnectionProvider
-
- All Implemented Interfaces:
org.quartz.utils.ConnectionProvider
public class QuartzConnectionProvider extends java.lang.Object implements org.quartz.utils.ConnectionProviderThis is a hack to let Quartz access datasource beans from SprigContext Quartz support custom connection providers but not non primitive parameters for them
-
-
Constructor Summary
Constructors Constructor Description QuartzConnectionProvider()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.sql.ConnectiongetConnection()voidinitialize()voidsetXaDataSource(boolean isXaDataSource)this is called by quartz (given by the configuration)voidshutdown()
-
-
-
Method Detail
-
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 java.sql.Connection getConnection() throws java.sql.SQLException- Specified by:
getConnectionin interfaceorg.quartz.utils.ConnectionProvider- Throws:
java.sql.SQLException
-
shutdown
public void shutdown() throws java.sql.SQLException- Specified by:
shutdownin interfaceorg.quartz.utils.ConnectionProvider- Throws:
java.sql.SQLException
-
initialize
public void initialize() throws java.sql.SQLException- Specified by:
initializein interfaceorg.quartz.utils.ConnectionProvider- Throws:
java.sql.SQLException
-
-