Class SecureScriptContextFactory
java.lang.Object
org.mozilla.javascript.ContextFactory
org.flowable.scripting.secure.impl.SecureScriptContextFactory
public class SecureScriptContextFactory
extends org.mozilla.javascript.ContextFactory
- Author:
- Joram Barrez
-
Nested Class Summary
Nested classes/interfaces inherited from class org.mozilla.javascript.ContextFactory
org.mozilla.javascript.ContextFactory.GlobalSetter, org.mozilla.javascript.ContextFactory.Listener -
Field Summary
FieldsModifier and TypeFieldDescriptionprotected SecureScriptClassShutterprotected booleanprotected longprotected longprotected intprotected intprotected intprotected SecureScriptThreadMxBeanWrapper -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected ObjectdoTopCall(org.mozilla.javascript.Callable callable, org.mozilla.javascript.Context cx, org.mozilla.javascript.Scriptable scope, org.mozilla.javascript.Scriptable thisObj, Object[] args) longlongintintintbooleanprotected org.mozilla.javascript.Contextprotected voidobserveInstructionCount(org.mozilla.javascript.Context cx, int instructionCount) voidsetClassShutter(SecureScriptClassShutter classShutter) voidsetEnableAccessToBeans(boolean enableAccessToBeans) voidsetMaxMemoryUsed(long maxMemoryUsed) voidsetMaxScriptExecutionTime(long maxScriptExecutionTime) voidsetMaxStackDepth(int maxStackDepth) voidsetObserveInstructionCount(int observeInstructionCount) voidsetOptimizationLevel(int optimizationLevel) Methods inherited from class org.mozilla.javascript.ContextFactory
addListener, call, checkNotSealed, createClassLoader, enter, enterContext, enterContext, exit, getApplicationClassLoader, getE4xImplementationFactory, getGlobal, getGlobalSetter, hasExplicitGlobal, hasFeature, initApplicationClassLoader, initGlobal, isSealed, onContextCreated, onContextReleased, removeListener, seal
-
Field Details
-
classShutter
-
observeInstructionCount
protected int observeInstructionCount -
maxScriptExecutionTime
protected long maxScriptExecutionTime -
maxMemoryUsed
protected long maxMemoryUsed -
maxStackDepth
protected int maxStackDepth -
optimizationLevel
protected int optimizationLevel -
threadMxBeanWrapper
-
enableAccessToBeans
protected boolean enableAccessToBeans
-
-
Constructor Details
-
SecureScriptContextFactory
public SecureScriptContextFactory()
-
-
Method Details
-
makeContext
protected org.mozilla.javascript.Context makeContext()- Overrides:
makeContextin classorg.mozilla.javascript.ContextFactory
-
observeInstructionCount
protected void observeInstructionCount(org.mozilla.javascript.Context cx, int instructionCount) - Overrides:
observeInstructionCountin classorg.mozilla.javascript.ContextFactory
-
doTopCall
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) - Overrides:
doTopCallin classorg.mozilla.javascript.ContextFactory
-
getOptimizationLevel
public int getOptimizationLevel() -
setOptimizationLevel
public void setOptimizationLevel(int optimizationLevel) -
getClassShutter
-
setClassShutter
-
getObserveInstructionCount
public int getObserveInstructionCount() -
setObserveInstructionCount
public void setObserveInstructionCount(int observeInstructionCount) -
getMaxScriptExecutionTime
public long getMaxScriptExecutionTime() -
setMaxScriptExecutionTime
public void setMaxScriptExecutionTime(long maxScriptExecutionTime) -
getMaxMemoryUsed
public long getMaxMemoryUsed() -
setMaxMemoryUsed
public void setMaxMemoryUsed(long maxMemoryUsed) -
getMaxStackDepth
public int getMaxStackDepth() -
setMaxStackDepth
public void setMaxStackDepth(int maxStackDepth) -
isEnableAccessToBeans
public boolean isEnableAccessToBeans() -
setEnableAccessToBeans
public void setEnableAccessToBeans(boolean enableAccessToBeans)
-