Liferay 6.0.5

com.liferay.portal.scripting.groovy
Class GroovyExecutor

java.lang.Object
  extended by com.liferay.portal.scripting.groovy.GroovyExecutor
All Implemented Interfaces:
ScriptingExecutor

public class GroovyExecutor
extends Object
implements ScriptingExecutor


Field Summary
static String CACHE_NAME
           
static String LANGUAGE
           
 
Constructor Summary
GroovyExecutor()
           
 
Method Summary
 void clearCache()
           
 Map<String,Object> eval(Set<String> allowedClasses, Map<String,Object> inputObjects, Set<String> outputNames, String script)
           
protected  groovy.lang.Script getCompiledScript(String script)
           
 String getLanguage()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

CACHE_NAME

public static final String CACHE_NAME

LANGUAGE

public static final String LANGUAGE
See Also:
Constant Field Values
Constructor Detail

GroovyExecutor

public GroovyExecutor()
Method Detail

clearCache

public void clearCache()
Specified by:
clearCache in interface ScriptingExecutor

getLanguage

public String getLanguage()
Specified by:
getLanguage in interface ScriptingExecutor

eval

public Map<String,Object> eval(Set<String> allowedClasses,
                               Map<String,Object> inputObjects,
                               Set<String> outputNames,
                               String script)
                        throws ScriptingException
Specified by:
eval in interface ScriptingExecutor
Throws:
ScriptingException

getCompiledScript

protected groovy.lang.Script getCompiledScript(String script)

Liferay 6.0.5