Package org.mozilla.javascript

Examples of org.mozilla.javascript.LazilyLoadedCtor


            pathProto = new PathWrapper(this);

            hopObjectProto =  HopObject.init(this);
            // use lazy loaded constructors for all extension objects that
            // adhere to the ScriptableObject.defineClass() protocol
            new LazilyLoadedCtor(global, "File",
                    "helma.scripting.rhino.extensions.FileObject", false);
            new LazilyLoadedCtor(global, "Ftp",
                    "helma.scripting.rhino.extensions.FtpObject", false);
            new LazilyLoadedCtor(global, "Image",
                    "helma.scripting.rhino.extensions.ImageObject", false);
            new LazilyLoadedCtor(global, "Remote",
                    "helma.scripting.rhino.extensions.XmlRpcObject", false);
            MailObject.init(global, app.getProperties());
            JSAdapter.init(context, global, false);

            // add some convenience functions to string, date and number prototypes
View Full Code Here


           
            requireBuilder = new RequireBuilder();           
            setModuleSourceProvider(moduleSourceProvider);
            requireBuilder.setSandboxed(false);

            new LazilyLoadedCtor(topLevel, "JSAdapter",
                "org.rhq.scripting.javascript.engine.JSAdapter",
                false);
            // add top level functions
            String names[] = { "bindings", "scope", "sync"  };
            topLevel.defineFunctionProperties(names, RhinoScriptEngine.class, ScriptableObject.DONTENUM);
View Full Code Here

  public void initStandardObjects(Context cx, boolean sealed) {
    super.initStandardObjects(cx, sealed);
    // Override the class loading objects with our own extended classes

    for (int i = 0; i != topPackages.length; i += 2)
      new LazilyLoadedCtor(this, topPackages[i], topPackages[i + 1], false);

    // define some global functions and objects:
    String[] names = { "print", "evaluate" };
    defineFunctionProperties(names, TopLevel.class,
      ScriptableObject.DONTENUM);
View Full Code Here

TOP

Related Classes of org.mozilla.javascript.LazilyLoadedCtor

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.