@Configuration public class LibraQuartzConfiguration extends Object
| 构造器和说明 |
|---|
LibraQuartzConfiguration() |
| 限定符和类型 | 方法和说明 |
|---|---|
org.quartz.spi.JobFactory |
jobFactory(org.springframework.context.ApplicationContext applicationContext)
With a custom JobFactory, you can inject a Spring-related job into your job.
|
JobTaskUtils |
jobTaskUtils(org.springframework.context.ApplicationContext applicationContext)
Custom task annotation management tools
|
Properties |
quartzProperties()
Load the configuration
|
org.springframework.scheduling.quartz.SchedulerFactoryBean |
schedulerFactoryBean(org.quartz.spi.JobFactory jobFactory)
Task scheduling factory
|
@Bean public Properties quartzProperties() throws IOException
IOException - The properties set is error.@Bean public org.quartz.spi.JobFactory jobFactory(org.springframework.context.ApplicationContext applicationContext)
applicationContext - the application context@Bean
public org.springframework.scheduling.quartz.SchedulerFactoryBean schedulerFactoryBean(org.quartz.spi.JobFactory jobFactory)
throws IOException
jobFactory - the job factoryIOException - The properties set is error.public JobTaskUtils jobTaskUtils(org.springframework.context.ApplicationContext applicationContext)
applicationContext - the application contextCopyright © 2018. All rights reserved.