Examples of ScriptusClassShutter


Examples of net.ex337.scriptus.model.support.ScriptusClassShutter

        }

        LOG.debug("loading " + pid.toString().substring(30));

        Context cx = Context.enter();
        cx.setClassShutter(new ScriptusClassShutter());
        cx.setOptimizationLevel(-1); // must use interpreter mode

        try {

            ProcessDAO d;
View Full Code Here

Examples of net.ex337.scriptus.model.support.ScriptusClassShutter

        }

        LOG.debug("saving " + p.getPid().toString().substring(30));

        Context cx = Context.enter();
        cx.setClassShutter(new ScriptusClassShutter());
        cx.setOptimizationLevel(-1); // must use interpreter mode

        try {
            ProcessDAO d = null;
View Full Code Here

Examples of net.ex337.scriptus.model.support.ScriptusClassShutter

    this.isRoot = true;
    this.isAlive = true;
    this.version = 0;

    Context cx = Context.enter();
    cx.setClassShutter(new ScriptusClassShutter());
    cx.setOptimizationLevel(-1); // must use interpreter mode
   
    try {

      ScriptusAPI scriptusApi = new ScriptusAPI(config);
View Full Code Here

Examples of net.ex337.scriptus.model.support.ScriptusClassShutter

        LOG.debug("starting new script");

        Context cx = Context.enter();
        cx.putThreadLocal("process", this);
        cx.setClassShutter(new ScriptusClassShutter());

        globalScope.put("args", globalScope, Context.javaToJS(args, globalScope));
        globalScope.put("owner", globalScope, Context.javaToJS(owner, globalScope));

        try {
          // running for first time
          result = cx.callFunctionWithContinuations(compiled, globalScope, new Object[0]);
        } finally {
          Context.exit();

        }

      } else {

        LOG.debug("continuing existing script " + getPid().toString().substring(30));

        if (state instanceof ConvertsToScriptable) {
          state = ((ConvertsToScriptable) state).toScriptable();
        }

        Context cx = Context.enter();
        cx.setClassShutter(new ScriptusClassShutter());
        cx.putThreadLocal("process", this);
        try {
//            if(state != null) {
//                      System.out.println("state class="+state.getClass());
//            }
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.