History | Log In     View a printable version of the current page.  
Issue Details (XML | Word | Printable)

Key: GROOVY-1348
Type: Improvement Improvement
Status: Closed Closed
Resolution: Fixed
Priority: Minor Minor
Assignee: Paul King
Reporter: Colin Taylor
Votes: 0
Watchers: 0
Operations

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

Patch to provide acess to Script Object in GroovyScriptEngine

Created: 14/Jun/06 09:44 PM   Updated: 17/Apr/08 07:26 AM
Component/s: None
Affects Version/s: 1.0-JSR-6
Fix Version/s: 1.6-beta-1, 1.5.5

Time Tracking:
Not Specified

File Attachments: 1. Text File GroovyScriptEngine.patch (0.9 kb)



 Description  « Hide
Patch to provide acess to Script Object in GroovyScriptEngine. This is to allow dependency injection (and multiple return values) from scripts, through acess to setProperty, getProperty.

 All   Comments   Work Log   Change History      Sort Order: Ascending order - Click to sort in descending order
Paul King - 12/Jan/08 04:42 AM
Added. Thanks for the patch.

Colin Taylor - 06/Feb/08 03:22 PM
Lost track of this a bit, but as 1.5.4 there still is no useable way of getting script objects.

public Script createScript(Binding binding, ScriptCacheEntry entry) {

relies on a private class ScriptCacheEntry which can only be obtained via the private method :

private ScriptCacheEntry updateCacheEntry(String scriptName)


Paul King - 07/Feb/08 06:34 AM
Apologies, I refactored your patch one step too far. Should be fixed now.

Paul King - 08/Feb/08 01:26 AM
close off release 1.5.4