public class GroovyScripting extends Object
Modifier and Type | Field and Description |
---|---|
protected Map<File,org.nuxeo.ecm.webengine.scripting.GroovyScripting.Entry> |
cache |
protected groovy.lang.GroovyClassLoader |
loader |
Constructor and Description |
---|
GroovyScripting(ClassLoader parent) |
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() |
groovy.lang.Script |
getScript(File file,
groovy.lang.Binding context) |
Class<?> |
loadClass(String className) |
protected final groovy.lang.GroovyClassLoader loader
public GroovyScripting(ClassLoader parent)
public GroovyScripting(ClassLoader parent, org.codehaus.groovy.control.CompilerConfiguration cfg)
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 groovy.lang.GroovyRuntimeException
groovy.lang.GroovyRuntimeException
public Object eval(File file, groovy.lang.Binding context) throws groovy.lang.GroovyRuntimeException
groovy.lang.GroovyRuntimeException
public Class<?> compile(File file) throws groovy.lang.GroovyRuntimeException
groovy.lang.GroovyRuntimeException
Copyright © 2019 Nuxeo. All rights reserved.