public class SlingContextFactory
extends org.mozilla.javascript.ContextFactory
SlingContextFactory
extends 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.Modifier and Type | Method and Description |
---|---|
void |
exitDebugger() |
protected boolean |
hasFeature(org.mozilla.javascript.Context cx,
int featureIndex) |
boolean |
isDebugging() |
protected org.mozilla.javascript.Context |
makeContext() |
protected void |
onContextCreated(org.mozilla.javascript.Context cx) |
void |
setDebugging(boolean enable) |
static void |
setup(org.mozilla.javascript.tools.debugger.ScopeProvider sp,
int languageVersion) |
static void |
teardown() |
addListener, call, checkNotSealed, createClassLoader, doTopCall, enter, enterContext, enterContext, exit, getApplicationClassLoader, getE4xImplementationFactory, getGlobal, getGlobalSetter, hasExplicitGlobal, initApplicationClassLoader, initGlobal, isSealed, observeInstructionCount, onContextReleased, removeListener, seal
public static void setup(org.mozilla.javascript.tools.debugger.ScopeProvider sp, int languageVersion)
public static void teardown()
protected org.mozilla.javascript.Context makeContext()
makeContext
in class org.mozilla.javascript.ContextFactory
protected boolean hasFeature(org.mozilla.javascript.Context cx, int featureIndex)
hasFeature
in class org.mozilla.javascript.ContextFactory
protected void onContextCreated(org.mozilla.javascript.Context cx)
onContextCreated
in class org.mozilla.javascript.ContextFactory
public void exitDebugger()
public void setDebugging(boolean enable)
public boolean isDebugging()
Copyright © 2018 The Apache Software Foundation. All rights reserved.