Есть ли способ иметь @Scheduled
с кварцем в качестве основного планировщика?
Две вещи, которые я могу придумать, но оба требуют некоторой работы:
- создать пользовательский
BeanPostProcessor
, который будет анализировать аннотации@Scheduled
и регистрировать задания кварца - реализовать
TaskScheduler
для делегирования на кварцScheduler
.
Вопрос: есть ли что-то уже написанное для этих двух опций и есть ли другой вариант?