Liferay 6.2-ce-ga5

com.liferay.portal.scripting.javascript
Class JavaScriptExecutor

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

public class JavaScriptExecutor
extends BaseScriptingExecutor


Constructor Summary
JavaScriptExecutor()
           
 
Method Summary
 void clearCache()
           
 Map<String,Object> eval(Set<String> allowedClasses, Map<String,Object> inputObjects, Set<String> outputNames, String script, ClassLoader... classLoaders)
           
protected  org.mozilla.javascript.Script getCompiledScript(String script, ClassLoader... classLoaders)
           
 String getLanguage()
           
 
Methods inherited from class com.liferay.portal.kernel.scripting.BaseScriptingExecutor
eval
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

JavaScriptExecutor

public JavaScriptExecutor()
Method Detail

clearCache

public void clearCache()
Specified by:
clearCache in interface ScriptingExecutor
Overrides:
clearCache in class BaseScriptingExecutor

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

getCompiledScript

protected org.mozilla.javascript.Script getCompiledScript(String script,
                                                          ClassLoader... classLoaders)

Liferay 6.2-ce-ga5