Package org.mozilla.javascript

Examples of org.mozilla.javascript.Callable.call()


        try{
          if(session != null)
            session.adoptThread(Thread.currentThread());
          UserSecurity.registerThisThread(user);
          Transaction.startTransaction();
          function.call(PersevereContextFactory.getContext(), scope, null, new Object[]{});
          Transaction.currentTransaction().commit();
        }catch(Throwable e){
          if(e instanceof RhinoException)
            log.warn(((RhinoException)e).details() + '\n' + ((RhinoException)e).getScriptStackTrace());
          else
View Full Code Here


      setProperties(obj, properties);
    // If an initialize function was passed as the last argument, execute
    // it now. The fields of the result of the function are then injected
    // into the object after, if it is a NativeObject.
    if (initialize != null) {
      Object res = initialize.call(cx, scope, obj, args);
      if (res instanceof NativeObject)
        setProperties(obj, (NativeObject) res);
    }
    return obj;
  }
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.