类 SchedulerConfiguration
- java.lang.Object
-
- tech.simter.scheduling.quartz.SchedulerConfiguration
-
- 所有已实现的接口:
org.springframework.beans.factory.Aware,org.springframework.context.ApplicationContextAware,org.springframework.context.EmbeddedValueResolverAware
@Profile("scheduler") @Configuration("schedulerConfiguration") public class SchedulerConfiguration extends java.lang.Object implements org.springframework.context.ApplicationContextAware, org.springframework.context.EmbeddedValueResolverAware
-
-
构造器概要
构造器 构造器 说明 SchedulerConfiguration()
-
方法概要
所有方法 实例方法 具体方法 修饰符和类型 方法 说明 voidinit()org.quartz.spi.JobFactoryjobFactory()For auto inject spring bean toMethodInvokingJobDetailFactoryBean.MethodInvokingJoborg.springframework.scheduling.quartz.SchedulerFactoryBeanschedulerFactoryBean()Create aSchedulerFactoryBeanbean.voidsetApplicationContext(org.springframework.context.ApplicationContext applicationContext)voidsetEmbeddedValueResolver(org.springframework.util.StringValueResolver resolver)
-
-
-
方法详细资料
-
setApplicationContext
public void setApplicationContext(org.springframework.context.ApplicationContext applicationContext) throws org.springframework.beans.BeansException- 指定者:
setApplicationContext在接口中org.springframework.context.ApplicationContextAware- 抛出:
org.springframework.beans.BeansException
-
setEmbeddedValueResolver
public void setEmbeddedValueResolver(org.springframework.util.StringValueResolver resolver)
- 指定者:
setEmbeddedValueResolver在接口中org.springframework.context.EmbeddedValueResolverAware
-
init
@PostConstruct public void init() throws java.lang.Exception- 抛出:
java.lang.Exception
-
schedulerFactoryBean
@Bean(name="schedulerFactoryBean") @DependsOn({"schedulerConfiguration","jobFactory"}) public org.springframework.scheduling.quartz.SchedulerFactoryBean schedulerFactoryBean()Create aSchedulerFactoryBeanbean.Must make sure this bean init after
init()method. Otherwise no task will be scheduled.- 返回:
- the schedulerFactory bean
-
jobFactory
@Bean(name="jobFactory") public org.quartz.spi.JobFactory jobFactory()
For auto inject spring bean toMethodInvokingJobDetailFactoryBean.MethodInvokingJob- 返回:
- the jobFactory bean
-
-