-
Notifications
You must be signed in to change notification settings - Fork 38.8k
Description
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 SchedulerService
public 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