public class GroovyScripting extends Object
Modifier and Type | Field and Description |
---|---|
protected Map<File,org.nuxeo.ecm.automation.core.scripting.GroovyScripting.Entry> |
cache |
protected groovy.lang.GroovyClassLoader |
loader |
Constructor and Description |
---|
GroovyScripting() |
GroovyScripting(boolean debug) |
GroovyScripting(ClassLoader parent,
boolean debug) |
GroovyScripting(ClassLoader parent,
org.codehaus.groovy.control.CompilerConfiguration cfg) |
Modifier and Type | Method and Description |
---|---|
void |
addClasspath(String cp) |
void |
addClasspathUrl(URL cp) |
void |
clearCache() |
Class<?> |
compile(File file) |
Object |
eval(File file,
groovy.lang.Binding context) |
Object |
eval(File file,
Map<String,Object> context) |
groovy.lang.GroovyClassLoader |
getGroovyClassLoader() |
static ClassLoader |
getParentLoader() |
groovy.lang.Script |
getScript(File file,
groovy.lang.Binding context) |
groovy.lang.Script |
getScript(String content,
groovy.lang.Binding context) |
Class<?> |
loadClass(String className) |
protected final groovy.lang.GroovyClassLoader loader
public GroovyScripting()
public GroovyScripting(boolean debug)
public GroovyScripting(ClassLoader parent, boolean debug)
public GroovyScripting(ClassLoader parent, org.codehaus.groovy.control.CompilerConfiguration cfg)
public static ClassLoader getParentLoader()
public void addClasspath(String cp)
public void addClasspathUrl(URL cp)
public void clearCache()
public Class<?> loadClass(String className) throws ClassNotFoundException
ClassNotFoundException
public groovy.lang.GroovyClassLoader getGroovyClassLoader()
public Object eval(File file, Map<String,Object> context) throws IOException
IOException
public Object eval(File file, groovy.lang.Binding context) throws IOException
IOException
public Class<?> compile(File file) throws IOException
IOException
public groovy.lang.Script getScript(File file, groovy.lang.Binding context) throws IOException
IOException
Copyright © 2015 Nuxeo SA. All rights reserved.