Skip to content

@Scheduled's int attributes do not allow for placeholder values [SPR-8067] #12722

@spring-projects-issues

Description

@spring-projects-issues

Eliran Bivas opened SPR-8067 and commented

In XML declaration it was possible to read configuration parameter for fixed-delay, fixed-rate (and the future initial-wait):

<task:scheduled-tasks scheduler="cleanServiceScheduler">
   <task:scheduled ref="cleanService" method="clean" fixed-delay="${admin.clean.rate.milis}"/>
</task:scheduled-tasks>

When using the annotation driven configuration the parameters accept constant values.
Will be nice to have some attribute like fixedRateProperty that will read properties from configuration.


Affects: 3.0.5

Attachments:

Issue Links:

3 votes, 8 watchers

Metadata

Metadata

Assignees

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