Classes which can run scripts should implement this interface.
Type Params | Return Type | Name and description |
---|---|---|
|
boolean |
canRun(Class<?> scriptClass, GroovyClassLoader loader) Returns true if this runner is able to
run the given class. |
|
Object |
run(Class<?> scriptClass, GroovyClassLoader loader) Runs the given class. |
Returns true
if this runner is able to
run the given class.
scriptClass
- class to runloader
- used to locate classes and resourcesRuns the given class.
scriptClass
- class to runloader
- used to locate classes and resources