You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@groovy.apache.org by "Luke Butters (JIRA)" <ji...@apache.org> on 2017/08/31 02:00:00 UTC
[jira] [Updated] (GROOVY-8306) Support reloading of dependencies of
groovy classes (Like GroovyScriptEngine)
[ https://issues.apache.org/jira/browse/GROOVY-8306?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Luke Butters updated GROOVY-8306:
---------------------------------
Description:
Hi
GroovyScriptEngine is very useful because if you have a script that depends on class {{Foo}} and if {{Foo}} changes the GroovyScriptEngine ensures that the script uses the new version of {{Foo}}. It does this without always reloading every class and script.
It would be helpful if the same support could be done for loading classes. For example if I have a groovy class {{Bar}} and it depends on {{Foo}}, if {{Foo}} changes it would be nice if next time I load {{Bar}} {{Foo}} is reloaded.
Perhaps GroovyScriptEngine could be enhanced to support loading classes directly.
Perhaps this is already possible and some trick exists where I can call {{groovy.util.GroovyScriptEngine.loadScriptByName(String)}} with the class name?
was:
Hi
GroovyScriptEngine is very useful because if you have a script depend on class {{Foo}} and if {{Foo}} changes the GroovyScriptEngine ensures that the script uses the new version of {{Foo}}. It does this without always reloading every class and script.
It would be helpful if the same support could be done for loading classes. For example if I have a groovy class {{Bar}} and it depends on {{Foo}}, if {{Foo}} changes it would be nice if next time I load {{Bar}} {{Foo}} is reloaded.
Perhaps GroovyScriptEngine could be enhanced to support loading classes directly.
Perhaps this is already possible and some trick exists where I can call {{groovy.util.GroovyScriptEngine.loadScriptByName(String)}} with the class name?
> Support reloading of dependencies of groovy classes (Like GroovyScriptEngine)
> ------------------------------------------------------------------------------
>
> Key: GROOVY-8306
> URL: https://issues.apache.org/jira/browse/GROOVY-8306
> Project: Groovy
> Issue Type: Improvement
> Reporter: Luke Butters
>
> Hi
> GroovyScriptEngine is very useful because if you have a script that depends on class {{Foo}} and if {{Foo}} changes the GroovyScriptEngine ensures that the script uses the new version of {{Foo}}. It does this without always reloading every class and script.
> It would be helpful if the same support could be done for loading classes. For example if I have a groovy class {{Bar}} and it depends on {{Foo}}, if {{Foo}} changes it would be nice if next time I load {{Bar}} {{Foo}} is reloaded.
> Perhaps GroovyScriptEngine could be enhanced to support loading classes directly.
> Perhaps this is already possible and some trick exists where I can call {{groovy.util.GroovyScriptEngine.loadScriptByName(String)}} with the class name?
--
This message was sent by Atlassian JIRA
(v6.4.14#64029)