Examples of initStandardObjects()


Examples of org.mozilla.javascript.Context.initStandardObjects()

                    MessageContext.getCurrentMessageContext().getConfigurationContext();
            cx.putThreadLocal(MashupConstants.AXIS2_CONFIGURATION_CONTEXT, configurationContext);
            AxisService service = new AxisService();
            service.addParameter(MashupConstants.MASHUP_AUTHOR, CurrentSession.getUser());
            cx.putThreadLocal(MashupConstants.AXIS2_SERVICE, service);
            Scriptable scope = cx.initStandardObjects();
            ScriptableObject.defineClass(scope, ResourceHostObject.class);
            ScriptableObject.defineClass(scope, CollectionHostObject.class);
            ScriptableObject.defineClass(scope, RegistryHostObject.class);
            Object result = cx.evaluateString(scope, script, "<cmd>", 1, null);
            if (result != null && log.isInfoEnabled()) {
View Full Code Here

Examples of org.mozilla.javascript.Context.initStandardObjects()

                    MessageContext.getCurrentMessageContext().getConfigurationContext();
            cx.putThreadLocal(MashupConstants.AXIS2_CONFIGURATION_CONTEXT, configurationContext);
            AxisService service = new AxisService();
            service.addParameter(MashupConstants.MASHUP_AUTHOR, CurrentSession.getUser());
            cx.putThreadLocal(MashupConstants.AXIS2_SERVICE, service);
            Scriptable scope = cx.initStandardObjects();
            ScriptableObject.defineClass(scope, ResourceHostObject.class);
            ScriptableObject.defineClass(scope, CollectionHostObject.class);
            ScriptableObject.defineClass(scope, RegistryHostObject.class);
            Object result = cx.evaluateString(scope, script, "<cmd>", 1, null);
            if (result != null && log.isInfoEnabled()) {
View Full Code Here

Examples of org.mozilla.javascript.ImporterTopLevel.initStandardObjects()

   
    /* CHECK ME */
    if (cx == null) {
      try {
        cx = Context.enter();
        importer.initStandardObjects(cx, false);
        Context.exit();
      } catch (Exception ex) {
        System.err.println("Error : " + ex.getMessage());
      }
    } else {
View Full Code Here

Examples of org.mozilla.javascript.tools.shell.Global.initStandardObjects()

        try {
            Context ctx = Context.enter();
            ctx.setLanguageVersion(170);

            final Global global = new Global();
            global.initStandardObjects(ctx,false);

            NativeObject exports = new NativeObject();
            global.put("exports", global, exports);

            InputStream resourceAsStream = Rhinodo.class.getClassLoader().getResourceAsStream("META-INF/env/path.js");
View Full Code Here

Examples of org.mule.tools.rhinodo.rhino.NodeJsGlobal.initStandardObjects()

        contextFactory.call(new ContextAction() {
            @Override
            public Object run(Context ctx) {
                ctx.setOptimizationLevel(debug ? -1 : 9);
                ctx.setLanguageVersion(Context.VERSION_1_8);
                global.initStandardObjects(ctx, false);

                if ( debug ) {

                    ScriptableObject.putProperty(global, "strikeThePose", new BaseFunction() {
                        @Override
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.