Uploaded image for project: 'Spring Framework'
  1. Spring Framework
  2. SPR-14195

Add note constrain/restriction for <task:scheduled> about method signature such as @Scheduled

    XMLWordPrintable

    Details

    • Type: Task
    • Status: Closed
    • Priority: Minor
    • Resolution: Complete
    • Affects Version/s: 4.2 GA, 4.2.5
    • Fix Version/s: 4.3 RC2
    • Component/s: [Documentation]
    • Labels:
      None
    • Last commented by a User:
      true

      Description

      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.

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              juergen.hoeller Juergen Hoeller
              Reporter:
              dr_pompeii Manuel Jordan
              Last updater:
              Spring Issuemaster
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved:
                Days since last comment:
                1 year, 40 weeks, 6 days ago