org.alfresco.repo.jscript
Class BaseScopableProcessorExtension
org.alfresco.repo.jscript.BaseScopableProcessorExtension
public class BaseScopableProcessorExtension
Abstract base class for a script implementation that requires a script execution scope.
The scope is local to the currently executing script and therefore a ThreadLocal is required.
Author:
-
Kevin Roast
Method Summary |
org.mozilla.javascript.Scriptable |
getScope() |
void |
setScope(org.mozilla.javascript.Scriptable scope) Set the Scriptable global scope |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
BaseScopableProcessorExtension
public BaseScopableProcessorExtension()
setScope
public void setScope(org.mozilla.javascript.Scriptable scope)
-
Set the Scriptable global scope
Parameters:
-
scope - relative global scope
getScope
public org.mozilla.javascript.Scriptable getScope()
-
Returns:
-
script global scope