com.liferay.portal.scripting.python
Class PythonExecutor
java.lang.Object
com.liferay.portal.scripting.python.PythonExecutor
- All Implemented Interfaces:
- ScriptingExecutor
public class PythonExecutor
- extends Object
- implements ScriptingExecutor
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
CACHE_NAME
public static final String CACHE_NAME
LANGUAGE
public static final String LANGUAGE
- See Also:
- Constant Field Values
PythonExecutor
public PythonExecutor()
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)