Package cn.net.pap.quartz
Class QuartzAutoConfiguration
java.lang.Object
cn.net.pap.quartz.QuartzAutoConfiguration
@Configuration
@ConditionalOnClass(com.zaxxer.hikari.HikariDataSource.class)
public class QuartzAutoConfiguration
extends Object
AutoConfiguration
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionquartzDataSourceorg.springframework.jdbc.datasource.init.DataSourceInitializer
quartzDataSourceInitializer
(DataSource dataSource) quartzDataSourceInitializerorg.springframework.scheduling.quartz.SchedulerFactoryBean
schedulerFactoryBeanorg.springframework.core.task.TaskExecutor
schedulerThreadPool
-
Constructor Details
-
QuartzAutoConfiguration
public QuartzAutoConfiguration()
-
-
Method Details
-
quartzDataSource
quartzDataSource- Returns:
- Throws:
SQLException
-
quartzDataSourceInitializer
@Bean("quartzDataSourceInitializer") public org.springframework.jdbc.datasource.init.DataSourceInitializer quartzDataSourceInitializer(DataSource dataSource) quartzDataSourceInitializer- Parameters:
dataSource
-- Returns:
-
schedulerFactoryBean
@Bean public org.springframework.scheduling.quartz.SchedulerFactoryBean schedulerFactoryBean() throws ExceptionschedulerFactoryBean- Returns:
- Throws:
Exception
-
schedulerThreadPool
@Bean public org.springframework.core.task.TaskExecutor schedulerThreadPool()schedulerThreadPool- Returns:
-