Class JSGlobalObjectFactory

  extended by
All Implemented Interfaces:

Deprecated. This class is part of the FESI script framework and will no longer be supported or updated as of ITIM 5.0. This class was used to register new factories used to wrap objects. Under the new script framework, this is done in

public class JSGlobalObjectFactory
extends java.lang.Object
implements JSObjectFactory

JSAttributeValuesFactory provides an interface for creating JS objects that represent AttributeValues. The given AttributeValue is defined as a named JS object.

Field Summary
Fields inherited from interface
Constructor Summary
          Deprecated. Constructor
Method Summary
 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
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

Constructor Detail


public JSGlobalObjectFactory()

Method Detail


public void registerObjectFactory(java.lang.String className,
                                  JSObjectFactory factory)
Register given object factory within the script evaluator

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
Creates a named object that can be used in the client's script. This method differes from setContextItem in that it will translate the given java object to an object that is compatible with the scripting language implementation and the result can be used in the client scripts, not just by the script engine extensions.

Specified by:
createScriptObject in interface JSObjectFactory
go - 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 environment
item - Object that will be made available as a script object
JSObject representing the given object.
FESI.jslib.JSException - when the object can not be converted into a format that can be used within the script environment


public java.lang.Object createJavaObject(java.lang.String name,
                                         FESI.jslib.JSObject o)
                                  throws FESI.jslib.JSException
Create a Java object from the specified JavaScript object. This method is optional. If the factory does not implement it, it must throw an UnsupportedOperationException.

Specified by:
createJavaObject in interface JSObjectFactory
name - Name of the JavaScript object. Can be empty.
o - JSObject to convert from.
Java object that represents the JSObject.
FESI.jslib.JSException - if the specified JSObject is malformed or not compatible with this factory.

IBM Security Identity Manager 6.0.0
© Copyright International Business Machines Corporation 2007, 2012. All rights reserved. US Government Users Restricited Rights - Use, duplication or disclosure restricted by GSA ADP Schedule Contract with IBM Corp.