public class SecureScriptContextFactory
extends org.mozilla.javascript.ContextFactory
| Modifier and Type | Field and Description |
|---|---|
protected SecureScriptClassShutter |
classShutter |
protected boolean |
enableAccessToBeans |
protected long |
maxMemoryUsed |
protected long |
maxScriptExecutionTime |
protected int |
maxStackDepth |
protected int |
observeInstructionCount |
protected int |
optimizationLevel |
protected SecureScriptThreadMxBeanWrapper |
threadMxBeanWrapper |
| Constructor and Description |
|---|
SecureScriptContextFactory() |
| Modifier and Type | Method and Description |
|---|---|
protected Object |
doTopCall(org.mozilla.javascript.Callable callable,
org.mozilla.javascript.Context cx,
org.mozilla.javascript.Scriptable scope,
org.mozilla.javascript.Scriptable thisObj,
Object[] args) |
SecureScriptClassShutter |
getClassShutter() |
long |
getMaxMemoryUsed() |
long |
getMaxScriptExecutionTime() |
int |
getMaxStackDepth() |
int |
getObserveInstructionCount() |
int |
getOptimizationLevel() |
boolean |
isEnableAccessToBeans() |
protected org.mozilla.javascript.Context |
makeContext() |
protected void |
observeInstructionCount(org.mozilla.javascript.Context cx,
int instructionCount) |
void |
setClassShutter(SecureScriptClassShutter classShutter) |
void |
setEnableAccessToBeans(boolean enableAccessToBeans) |
void |
setMaxMemoryUsed(long maxMemoryUsed) |
void |
setMaxScriptExecutionTime(long maxScriptExecutionTime) |
void |
setMaxStackDepth(int maxStackDepth) |
void |
setObserveInstructionCount(int observeInstructionCount) |
void |
setOptimizationLevel(int optimizationLevel) |
addListener, call, checkNotSealed, createClassLoader, enter, enterContext, enterContext, exit, getApplicationClassLoader, getE4xImplementationFactory, getGlobal, getGlobalSetter, hasExplicitGlobal, hasFeature, initApplicationClassLoader, initGlobal, isSealed, onContextCreated, onContextReleased, removeListener, sealprotected SecureScriptClassShutter classShutter
protected int observeInstructionCount
protected long maxScriptExecutionTime
protected long maxMemoryUsed
protected int maxStackDepth
protected int optimizationLevel
protected SecureScriptThreadMxBeanWrapper threadMxBeanWrapper
protected boolean enableAccessToBeans
protected org.mozilla.javascript.Context makeContext()
makeContext in class org.mozilla.javascript.ContextFactoryprotected void observeInstructionCount(org.mozilla.javascript.Context cx,
int instructionCount)
observeInstructionCount in class org.mozilla.javascript.ContextFactoryprotected Object doTopCall(org.mozilla.javascript.Callable callable, org.mozilla.javascript.Context cx, org.mozilla.javascript.Scriptable scope, org.mozilla.javascript.Scriptable thisObj, Object[] args)
doTopCall in class org.mozilla.javascript.ContextFactorypublic int getOptimizationLevel()
public void setOptimizationLevel(int optimizationLevel)
public SecureScriptClassShutter getClassShutter()
public void setClassShutter(SecureScriptClassShutter classShutter)
public int getObserveInstructionCount()
public void setObserveInstructionCount(int observeInstructionCount)
public long getMaxScriptExecutionTime()
public void setMaxScriptExecutionTime(long maxScriptExecutionTime)
public long getMaxMemoryUsed()
public void setMaxMemoryUsed(long maxMemoryUsed)
public int getMaxStackDepth()
public void setMaxStackDepth(int maxStackDepth)
public boolean isEnableAccessToBeans()
public void setEnableAccessToBeans(boolean enableAccessToBeans)
Copyright © 2021 Flowable. All rights reserved.