Package org.alfresco.repo.jscript
Class SandboxNativeJavaObject
java.lang.Object
org.mozilla.javascript.NativeJavaObject
org.alfresco.repo.jscript.SandboxNativeJavaObject
- All Implemented Interfaces:
Serializable,org.mozilla.javascript.Scriptable,org.mozilla.javascript.SymbolScriptable,org.mozilla.javascript.Wrapper
public class SandboxNativeJavaObject
extends org.mozilla.javascript.NativeJavaObject
A sandboxed
NativeJavaObject that prevents using reflection to escape a sandbox.- See Also:
-
Field Summary
Fields inherited from class org.mozilla.javascript.NativeJavaObject
isAdapter, javaObject, members, parent, prototype, staticTypeFields inherited from interface org.mozilla.javascript.Scriptable
NOT_FOUND -
Constructor Summary
ConstructorsConstructorDescriptionSandboxNativeJavaObject(org.mozilla.javascript.Scriptable scope, Object javaObject, Class<?> staticType) -
Method Summary
Methods inherited from class org.mozilla.javascript.NativeJavaObject
canConvert, coerceType, createInterfaceAdapter, delete, delete, delete, get, get, getClassName, getDefaultValue, getIds, getParentScope, getPrototype, has, has, has, hasInstance, initMembers, put, put, put, setParentScope, setPrototype, unwrap, wrap
-
Constructor Details
-
SandboxNativeJavaObject
-
-
Method Details
-
get
- Specified by:
getin interfaceorg.mozilla.javascript.Scriptable- Overrides:
getin classorg.mozilla.javascript.NativeJavaObject
-