Liferay 6.2-ce-ga5

com.liferay.portal.scripting.ruby
Class RubyExecutor

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

public class RubyExecutor
extends BaseScriptingExecutor


Field Summary
static String LANGUAGE
           
 
Constructor Summary
RubyExecutor()
           
 
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 com.liferay.portal.kernel.scripting.BaseScriptingExecutor
clearCache
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

LANGUAGE

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

RubyExecutor

public RubyExecutor()
Method Detail

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

Liferay 6.2-ce-ga5