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

Make script source locator mechanism pluggable

    Details

    • Type: Improvement
    • Status: Open
    • Priority: Major
    • Resolution: Unresolved
    • Affects Version/s: 2.5.5
    • Fix Version/s: General Backlog
    • Component/s: Core
    • Labels:
      None
    • Last commented by a User:
      true

      Description

      Currently ScriptFactoryPostProcessor's convertToScriptSource method allows only inline or Resource-based scripts. Suggest that ScriptFactoryPostProcessor should allow the script locator mechanism to be pluggable and allow scripts to be loaded from anywhere.

      Something along the lines of extracting the convertToScriptSource() method in ScriptFactoryPostProcessor into a pluggable strategy, with perhaps a default if you don't want to do anything more than inline or Resource-based scripts. So maybe there would be a ScriptLocator interface which you could plug into the ScriptFactoryPostProcessor rather than needing to subclass SFPP and override the protected convertToScriptSource method, which I did to allow scripts to be loaded from a database.

        Activity

        scottleber Scott Leberknight created issue -
        juergen.hoeller Juergen Hoeller made changes -
        Field Original Value New Value
        Fix Version/s 3.0 M2 [ 10540 ]
        Assignee Juergen Hoeller [ juergen.hoeller ]
        juergen.hoeller Juergen Hoeller made changes -
        Fix Version/s 3.0 M2 [ 10540 ]
        Fix Version/s 3.1 RC1 [ 11107 ]
        juergen.hoeller Juergen Hoeller made changes -
        Fix Version/s 3.1 RC1 [ 11107 ]
        Fix Version/s 3.1 M2 [ 11379 ]
        tmarshall Trevor Marshall made changes -
        Workflow jira [ 23992 ] SPR Workflow [ 37889 ]
        juergen.hoeller Juergen Hoeller made changes -
        Fix Version/s 3.1 M2 [ 11379 ]
        Fix Version/s 3.1 Backlog [ 11107 ]
        cbeams Chris Beams made changes -
        Fix Version/s General Backlog [ 12209 ]
        Fix Version/s 3.1 Backlog [ 11107 ]
        tmarshall Trevor Marshall made changes -
        Workflow SPR Workflow [ 37889 ] New SPR Workflow [ 65077 ]
        tmarshall Trevor Marshall made changes -
        Workflow New SPR Workflow [ 65077 ] SPR Workflow [ 74510 ]

          People

          • Assignee:
            juergen.hoeller Juergen Hoeller
            Reporter:
            scottleber Scott Leberknight
            Last updater:
            Trevor Marshall
          • Votes:
            7 Vote for this issue
            Watchers:
            7 Start watching this issue

            Dates

            • Created:
              Updated:
              Days since last comment:
              7 years, 3 weeks ago