Issue Details (XML | Word | Printable)

Key: SPR-5106
Type: Improvement Improvement
Status: Open Open
Priority: Major Major
Assignee: Juergen Hoeller
Reporter: Scott Leberknight
Votes: 1
Watchers: 1
Operations

If you were logged in you would be able to see more operations.
Spring Framework

Make script source locator mechanism pluggable

Created: 20/Aug/08 09:34 AM   Updated: 01/Dec/09 07:18 AM
Component/s: SpringCORE
Affects Version/s: 2.5.5
Fix Version/s: 3.1 M2

Time Tracking:
Not Specified


 Description  « Hide

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.



Juergen Hoeller made changes - 20/Aug/08 12:53 PM
Field Original Value New Value
Fix Version/s 3.0 M2 [ 10540 ]
Assignee Juergen Hoeller [ juergen.hoeller ]
Juergen Hoeller made changes - 22/Oct/08 09:25 AM
Fix Version/s 3.1 RC1 [ 11107 ]
Fix Version/s 3.0 M2 [ 10540 ]
Juergen Hoeller made changes - 01/Dec/09 07:18 AM
Fix Version/s 3.1 RC1 [ 11107 ]
Fix Version/s 3.1 M2 [ 11379 ]