public class JSGlobalObjectFactory extends java.lang.Object implements JSObjectFactory
CLASS_NAME| Constructor and Description |
|---|
JSGlobalObjectFactory()
Deprecated.
Constructor
|
| Modifier and Type | Method and Description |
|---|---|
java.lang.Object |
createJavaObject(java.lang.String name,
FESI.jslib.JSObject o)
Deprecated.
Create a Java object from the specified JavaScript object.
|
FESI.jslib.JSObject |
createScriptObject(FESI.jslib.JSGlobalObject go,
FESI.jslib.JSObject parent,
java.lang.String name,
java.lang.Object item)
Deprecated.
Creates a named object that can be used in the client's script.
|
void |
registerObjectFactory(java.lang.String className,
JSObjectFactory factory)
Deprecated.
Register given object factory within the script evaluator
|
public void registerObjectFactory(java.lang.String className,
JSObjectFactory factory)
className - -
String representing the class name of the object factory.factory - JSObjectFactory object correpsonding to the class name.public FESI.jslib.JSObject createScriptObject(FESI.jslib.JSGlobalObject go,
FESI.jslib.JSObject parent,
java.lang.String name,
java.lang.Object item)
throws FESI.jslib.JSException
createScriptObject in interface JSObjectFactorygo - JSGlobalObject as calling context.parent - JSObject to be registered as a member of. Same as go if
global.name - Name of the object in the scripting environmentitem - Object that will be made available as a script objectFESI.jslib.JSException - when the object can not be converted into a format that can
be used within the script environmentpublic java.lang.Object createJavaObject(java.lang.String name,
FESI.jslib.JSObject o)
throws FESI.jslib.JSException
createJavaObject in interface JSObjectFactoryname - Name of the JavaScript object. Can be empty.o - JSObject to convert from.FESI.jslib.JSException - if the specified JSObject is malformed or not compatible with
this factory.