[SPR-5106] Make script source locator mechanism pluggable Created: 20/Aug/08  Updated: 12/Dec/11

Status: Open
Project: Spring Framework
Component/s: Core
Affects Version/s: 2.5.5
Fix Version/s: General Backlog

Type: Improvement Priority: Major
Reporter: Scott Leberknight Assignee: Juergen Hoeller
Resolution: Unresolved Votes: 5
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Days since last comment: 5 years, 35 weeks, 3 days ago
Last commented by a User: true
Last updater: Trevor Marshall

 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.


Generated at Sat Apr 19 20:12:21 PDT 2014 using JIRA 6.2#6252-sha1:aa343257d4ce030d9cb8c531be520be9fac1c996.