groovy-notifications mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Luke Butters (JIRA)" <j...@apache.org>
Subject [jira] [Created] (GROOVY-8306) Support reloading of dependencies of groovy classes (Like GroovyScriptEngine)
Date Thu, 31 Aug 2017 01:59:02 GMT
Luke Butters created GROOVY-8306:
------------------------------------

             Summary: 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 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?



--
This message was sent by Atlassian JIRA
(v6.4.14#64029)

Mime
View raw message