public class SlingWrapFactory
extends org.mozilla.javascript.WrapFactory
Constructor and Description |
---|
SlingWrapFactory() |
Modifier and Type | Method and Description |
---|---|
void |
registerWrapper(java.lang.Class<?> javaClass,
java.lang.String hostObjectName) |
void |
unregisterWrapper(java.lang.Class<?> javaClass) |
org.mozilla.javascript.Scriptable |
wrapAsJavaObject(org.mozilla.javascript.Context cx,
org.mozilla.javascript.Scriptable scope,
java.lang.Object javaObject,
java.lang.Class staticType) |
public org.mozilla.javascript.Scriptable wrapAsJavaObject(org.mozilla.javascript.Context cx, org.mozilla.javascript.Scriptable scope, java.lang.Object javaObject, java.lang.Class staticType)
wrapAsJavaObject
in class org.mozilla.javascript.WrapFactory
cx
- the current Context for this threadscope
- the scope of the executing scriptjavaObject
- the object to be wrappedstaticType
- type hint. If security restrictions prevent to wrap
object based on its class, staticType will be used instead.public void registerWrapper(java.lang.Class<?> javaClass, java.lang.String hostObjectName)
public void unregisterWrapper(java.lang.Class<?> javaClass)
Copyright © 2022 The Apache Software Foundation. All rights reserved.