package cn.stylefeng.guns.modular.zsx.bs.job.quartz;
|
|
import org.quartz.Scheduler;
|
import org.springframework.beans.factory.annotation.Autowired;
|
import org.springframework.stereotype.Component;
|
|
/**
|
* @author fulin
|
* @since 2023/6/14 15:25
|
* <p>
|
* 此类仅仅作为引入静态调度器的工具类 {@link Scheduler}
|
* </p>
|
*/
|
@Component
|
public class SchedulerStatic {
|
|
private static Scheduler scheduler;
|
|
@Autowired
|
public SchedulerStatic(Scheduler scheduler) {
|
SchedulerStatic.scheduler = scheduler;
|
}
|
|
public static Scheduler getScheduler() {
|
return scheduler;
|
}
|
}
|