How to create Spring Beans in a dynamical way. Using Quartz SchedulerFactoryBean
I have a QuartzJobConfig class where I register my Spring-Quartz-Beans . I followed the instruction of the SchedulerFactoryBean , JobDetailFactoryBean and CronTriggerFactoryBean . My Jobs are configured in a yaml file outside the application. Means I have to create the Beans dynamically when the application starts. My Config: channelPartnerConfiguration: channelPartners: - code: Job1 jobConfigs: - schedule: 0 * * ? * MON-FRI name: Job1 daily hotel: false allotment: true enabled: true - schedule: 30 * * ? * MON-FRI name: Job2 weekly hotel: true allotment: false enabled: true ... My Config Class