Skip to content

Add note constrain/restriction for <task:scheduled> about method signature such as @Scheduled [SPR-14195] #18768

@spring-projects-issues

Description

@spring-projects-issues

Manuel Jordan opened SPR-14195 and commented

In the 33.4.2 The @Scheduled Annotation section says:

Notice that the methods to be scheduled must have void returns and must not expect any arguments. If the method needs to interact with other objects from the Application Context, then those would typically have been provided through dependency injection.

Now, for the 33.5.3 The 'scheduled-tasks' element section, for the <task:scheduled> does not appear a similar message for the method attribute.


Affects: 4.2 GA, 4.2.5

Issue Links:

Referenced from: commits b331ad5

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions