Class SlingContextFactory
- java.lang.Object
-
- org.mozilla.javascript.ContextFactory
-
- org.apache.sling.scripting.javascript.helper.SlingContextFactory
-
public class SlingContextFactory extends org.mozilla.javascript.ContextFactoryTheSlingContextFactoryextends the standard Rhino ContextFactory to provide customized settings, such as having the dynamic scope feature enabled by default. Other functionality, which may be added would be something like a configurable maximum script runtime value.
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description voidexitDebugger()protected booleanhasFeature(org.mozilla.javascript.Context cx, int featureIndex)booleanisDebugging()protected org.mozilla.javascript.ContextmakeContext()protected voidonContextCreated(org.mozilla.javascript.Context cx)voidsetDebugging(boolean enable)static voidsetup(org.mozilla.javascript.tools.debugger.ScopeProvider sp, int languageVersion)static voidteardown()-
Methods inherited from class org.mozilla.javascript.ContextFactory
addListener, call, checkNotSealed, createClassLoader, doTopCall, enter, enterContext, enterContext, exit, getApplicationClassLoader, getE4xImplementationFactory, getGlobal, getGlobalSetter, hasExplicitGlobal, initApplicationClassLoader, initGlobal, isSealed, observeInstructionCount, onContextReleased, removeListener, seal
-
-
-
-
Method Detail
-
setup
public static void setup(org.mozilla.javascript.tools.debugger.ScopeProvider sp, int languageVersion)
-
teardown
public static void teardown()
-
makeContext
protected org.mozilla.javascript.Context makeContext()
- Overrides:
makeContextin classorg.mozilla.javascript.ContextFactory
-
hasFeature
protected boolean hasFeature(org.mozilla.javascript.Context cx, int featureIndex)- Overrides:
hasFeaturein classorg.mozilla.javascript.ContextFactory
-
onContextCreated
protected void onContextCreated(org.mozilla.javascript.Context cx)
- Overrides:
onContextCreatedin classorg.mozilla.javascript.ContextFactory
-
exitDebugger
public void exitDebugger()
-
setDebugging
public void setDebugging(boolean enable)
-
isDebugging
public boolean isDebugging()
-
-