I have a scenario where I have a SchedulerFactoryBean and scattered CronTriggerBean bean definitions across multiple JARs. Is there a way to dynamically discover the triggers in the context and register them? SchedulerFactoryBean takes an array (or list) of Triggers as follows:
I would like to discover all CronTriggerBean beans defined in the Spring context and add them to the schedulerFactoryBean? I was thinking of doing it with a BeanPostProcessor but there is no addTrigger() method in schedulerFactoryBean.
<bean id="schedulerFactoryBean" class="org.springframework.scheduling.quartz.SchedulerFactoryBean">
<ref bean="triggerBean1" />
<ref bean="triggerBean2" />
Thanks a lot!