com.liferay.portal.scripting.ruby
Class RubyExecutor
java.lang.Object
com.liferay.portal.kernel.scripting.BaseScriptingExecutor
com.liferay.portal.scripting.ruby.RubyExecutor
- All Implemented Interfaces:
- ScriptingExecutor
public class RubyExecutor
- extends BaseScriptingExecutor
Method Summary |
protected Map<String,Object> |
doEval(Set<String> allowedClasses,
Map<String,Object> inputObjects,
Set<String> outputNames,
File scriptFile,
String script,
ClassLoader... classLoaders)
|
Map<String,Object> |
eval(Set<String> allowedClasses,
Map<String,Object> inputObjects,
Set<String> outputNames,
File scriptFile,
ClassLoader... classLoaders)
|
protected Map<String,Object> |
eval(Set<String> allowedClasses,
Map<String,Object> inputObjects,
Set<String> outputNames,
File scriptFile,
String script,
ClassLoader... classLoaders)
|
Map<String,Object> |
eval(Set<String> allowedClasses,
Map<String,Object> inputObjects,
Set<String> outputNames,
String script,
ClassLoader... classLoaders)
|
String |
getLanguage()
|
protected void |
initRubyGems()
|
void |
setExecuteInSeparateThread(boolean executeInSeparateThread)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
LANGUAGE
public static final String LANGUAGE
- See Also:
- Constant Field Values
RubyExecutor
public RubyExecutor()
eval
public Map<String,Object> eval(Set<String> allowedClasses,
Map<String,Object> inputObjects,
Set<String> outputNames,
File scriptFile,
ClassLoader... classLoaders)
throws ScriptingException
- Specified by:
eval
in interface ScriptingExecutor
- Overrides:
eval
in class BaseScriptingExecutor
- Throws:
ScriptingException
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()
setExecuteInSeparateThread
public void setExecuteInSeparateThread(boolean executeInSeparateThread)
doEval
protected Map<String,Object> doEval(Set<String> allowedClasses,
Map<String,Object> inputObjects,
Set<String> outputNames,
File scriptFile,
String script,
ClassLoader... classLoaders)
throws ScriptingException
- Throws:
ScriptingException
eval
protected Map<String,Object> eval(Set<String> allowedClasses,
Map<String,Object> inputObjects,
Set<String> outputNames,
File scriptFile,
String script,
ClassLoader... classLoaders)
throws ScriptingException
- Throws:
ScriptingException
initRubyGems
protected void initRubyGems()
throws Exception
- Throws:
Exception