Liferay 6.1.2-ce-ga3

com.liferay.portal.scripting.groovy
Class GroovyExecutor

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

public class GroovyExecutor
extends BaseScriptingExecutor


Constructor Summary
GroovyExecutor()
           
 
Method Summary
 void clearCache()
           
 Map<String,Object> eval(Set<String> allowedClasses, Map<String,Object> inputObjects, Set<String> outputNames, String script, ClassLoader... classLoaders)
           
protected  groovy.lang.Script getCompiledScript(String script, ClassLoader[] classLoaders)
           
protected  groovy.lang.GroovyShell getGroovyShell(ClassLoader[] classLoaders)
           
 String getLanguage()
           
 
Methods inherited from class com.liferay.portal.kernel.scripting.BaseScriptingExecutor
eval
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

GroovyExecutor

public GroovyExecutor()
Method Detail

clearCache

public void clearCache()
Specified by:
clearCache in interface ScriptingExecutor
Overrides:
clearCache in class BaseScriptingExecutor

eval

public Map<String,Object> eval(Set<String> allowedClasses,
                               Map<String,Object> inputObjects,
                               Set<String> outputNames,
                               String script,
                               ClassLoader... classLoaders)
                        throws ScriptingException
Throws:
ScriptingException

getLanguage

public String getLanguage()

getCompiledScript

protected groovy.lang.Script getCompiledScript(String script,
                                               ClassLoader[] classLoaders)

getGroovyShell

protected groovy.lang.GroovyShell getGroovyShell(ClassLoader[] classLoaders)

Liferay 6.1.2-ce-ga3