Skip to content

New annotation syntax for sheduling [SPR-5329] #10002

@spring-projects-issues

Description

@spring-projects-issues

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    in: coreIssues in core modules (aop, beans, core, context, expression)type: enhancementA general enhancement

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions