New annotation syntax for sheduling [SPR-5329] #10002
Labels
in: core
Issues in core modules (aop, beans, core, context, expression)
type: enhancement
A general enhancement
Milestone
Nickolay Mazurkin opened SPR-5329 and commented
I like the new way the Spring Framework 2.5 configures beans with context configuration files.
I am busied with a project with scheduling this week and I have an idea how to make scheduling simpler for new Spring users. The idea is to make a special annotation with name "
@Scheduled
" there one could point the cron time definition, concurrence control and other schedule settings. It could look like this - for example I have a service bean SchedulerServicepublic class SchedulerService implements Initializing Bean {
@Scheduled
("* * 1 * * ?")public void doSomething1(ScheduleContext context) {
}
@Scheduled
("* * */4 * * ?")public void doSomething2() {
}
}
And so on. The other thing we should implement - it a special unified facade interface to schedule engines such as Quartz and others.
No further details from SPR-5329
The text was updated successfully, but these errors were encountered: