[SPR-5106] Make script source locator mechanism pluggable Created: 20/Aug/08  Updated: 22/Sep/15  Resolved: 22/Sep/15

Status: Resolved
Project: Spring Framework
Component/s: Core
Affects Version/s: 2.5.5
Fix Version/s: None

Type: Improvement Priority: Major
Reporter: Scott Leberknight Assignee: Juergen Hoeller
Resolution: Won't Fix Votes: 7
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Days since last comment: 2 years, 35 weeks, 3 days ago
Last commented by a User: false
Last updater: Juergen Hoeller


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.

Comment by Juergen Hoeller [ 22/Sep/15 ]

Closing groups of outdated issues. Please reopen if still relevant.

Generated at Sat May 26 08:12:54 UTC 2018 using JIRA 7.9.0#79000-sha1:3ca552e944c2fe83b21589bc06f155b9b428cc2b.