Liferay 7.0-ce-m6

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
 void destroy()
           
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()
           
 ScriptingContainer<?> getScriptingContainer()
           
static void initRubyGems(javax.servlet.ServletContext servletContext)
           
 ScriptingExecutor newInstance(boolean executeInSeparateThread)
           
 void setExecuteInSeparateThread(boolean executeInSeparateThread)
           
 
Methods inherited from class com.liferay.portal.kernel.scripting.BaseScriptingExecutor
clearCache, getAggregateClassLoader, getScriptingExecutorClassLoader, initScriptingExecutorClassLoader
 
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

initRubyGems

public static void initRubyGems(javax.servlet.ServletContext servletContext)

destroy

public void destroy()

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()

getScriptingContainer

public ScriptingContainer<?> getScriptingContainer()
Specified by:
getScriptingContainer in interface ScriptingExecutor
Overrides:
getScriptingContainer in class BaseScriptingExecutor

newInstance

public ScriptingExecutor newInstance(boolean executeInSeparateThread)

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

Liferay 7.0-ce-m6