Spring Framework
  1. Spring Framework
  2. SPR-5106

Make script source locator mechanism pluggable

    Details

    • Type: Improvement Improvement
    • Status: Open
    • Priority: Major 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

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

          People

          • Assignee:
            Juergen Hoeller
            Reporter:
            Scott Leberknight
            Last updater:
            Trevor Marshall
          • Votes:
            5 Vote for this issue
            Watchers:
            5 Start watching this issue

            Dates

            • Created:
              Updated:
              Days since last comment:
              5 years, 35 weeks, 1 day ago