org.nuxeo.ecm.automation.core.scripting
Class GroovyScripting
java.lang.Object
org.nuxeo.ecm.automation.core.scripting.GroovyScripting
public class GroovyScripting
- extends Object
- Author:
- Bogdan Stefanescu
GroovyScripting
public GroovyScripting()
GroovyScripting
public GroovyScripting(boolean debug)
GroovyScripting
public GroovyScripting(ClassLoader parent,
boolean debug)
GroovyScripting
public GroovyScripting(ClassLoader parent,
org.codehaus.groovy.control.CompilerConfiguration cfg)
getParentLoader
public static ClassLoader getParentLoader()
addClasspath
public void addClasspath(String cp)
addClasspathUrl
public void addClasspathUrl(URL cp)
clearCache
public void clearCache()
loadClass
public Class<?> loadClass(String className)
throws ClassNotFoundException
- Throws:
ClassNotFoundException
getGroovyClassLoader
public groovy.lang.GroovyClassLoader getGroovyClassLoader()
eval
public Object eval(File file,
Map<String,Object> context)
throws IOException
- Throws:
IOException
eval
public Object eval(File file,
groovy.lang.Binding context)
throws IOException
- Throws:
IOException
compile
public Class<?> compile(File file)
throws IOException
- Throws:
IOException
getScript
public groovy.lang.Script getScript(File file,
groovy.lang.Binding context)
throws IOException
- Throws:
IOException
getScript
public groovy.lang.Script getScript(String content,
groovy.lang.Binding context)
Copyright © 2011 Nuxeo SAS. All Rights Reserved.