com.ibm.itim.script.wrappers

Class JSMapWrapperFactory

  • All Implemented Interfaces:
    WrapperFactory


    public class JSMapWrapperFactory
    extends AbstractWrapperFactory
    Factory to wrap Map types. Use interpreter specific wrappers to make the Map appear as a JavaScript hash where each key in the Map is a key in the JS hash.
    Since:
    ITIM 5.0
    See Also:
    IBMJSMapWrapper, FESIMapWrapper
    • Constructor Detail

      • JSMapWrapperFactory

        public JSMapWrapperFactory()
    • Method Detail

      • wrap

        public ObjectWrapper wrap(java.lang.Object obj,
                                  java.lang.String lang,
                                  java.lang.Object param)
        Description copied from interface: WrapperFactory
        Correctly wrap the given object to use in the scripting environment. If a wrapper that a WrapperFactory creates does not need any special context information, it is safe to ignore lang and param.
        Parameters:
        obj - The Object to wrap.
        lang - The scripting language we are using. This is used to choose a specific wrapper if the wrapper must vary depending on scripting language.
        param - Some wrapper classes need parameters to correctly wrap objects. param is how this information is passed. param can be null if no extra information is necessary.
        Returns:
        null - if (obj == null)
        null - if param is not sufficient to wrap the object for the given language.
        Wrapped object - else.