public class SlingWrapFactory
extends org.mozilla.javascript.WrapFactory
| Constructor and Description |
|---|
SlingWrapFactory() |
| Modifier and Type | Method and Description |
|---|---|
void |
registerWrapper(Class<?> javaClass,
String hostObjectName) |
void |
unregisterWrapper(Class<?> javaClass) |
org.mozilla.javascript.Scriptable |
wrapAsJavaObject(org.mozilla.javascript.Context cx,
org.mozilla.javascript.Scriptable scope,
Object javaObject,
Class staticType) |
public org.mozilla.javascript.Scriptable wrapAsJavaObject(org.mozilla.javascript.Context cx,
org.mozilla.javascript.Scriptable scope,
Object javaObject,
Class staticType)
wrapAsJavaObject in class org.mozilla.javascript.WrapFactorycx - 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 unregisterWrapper(Class<?> javaClass)
Copyright © 2017 The Apache Software Foundation. All rights reserved.