Liferay 6.0.5

com.liferay.portal.scripting.python
Class PythonExecutor

java.lang.Object
  extended by com.liferay.portal.scripting.python.PythonExecutor
All Implemented Interfaces:
ScriptingExecutor

public class PythonExecutor
extends Object
implements ScriptingExecutor


Field Summary
static String CACHE_NAME
           
static String LANGUAGE
           
 
Constructor Summary
PythonExecutor()
           
 
Method Summary
 void clearCache()
           
 Map<String,Object> eval(Set<String> allowedClasses, Map<String,Object> inputObjects, Set<String> outputNames, String script)
           
protected  org.python.core.PyCode 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

PythonExecutor

public PythonExecutor()
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 org.python.core.PyCode getCompiledScript(String script)

Liferay 6.0.5