org.alfresco.repo.jscript
Class BaseScopableProcessorExtension
org.alfresco.repo.jscript.BaseScopableProcessorExtension All Implemented Interfaces:
-
org.alfresco.repo.jscript.Scopeable, org.alfresco.processor.ProcessorExtension
@org.alfresco.api.AlfrescoPublicApi
public class BaseScopableProcessorExtension
implements org.alfresco.repo.jscript.Scopeable
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
Specified by:
-
setScope in interface org.alfresco.repo.jscript.Scopeable
Parameters:
-
scope - relative global scope
getScope
public org.mozilla.javascript.Scriptable getScope()
-
Returns:
-
script global scope