Package org.keplerproject.luajava

Examples of org.keplerproject.luajava.LuaObject.createProxy()


    System.out.println("PROXY TEST :");
    Printable p = new ObjPrint();
    p.print("TESTE 1");
    
    LuaObject o = L.getLuaObject("luaPrint");
    p = (Printable) o.createProxy("org.keplerproject.luajava.test.Printable");
    p.print("Teste 2");
   
    L.close();
  }
}
View Full Code Here


    L.LdoString(lua);
   
    for(int i = 0 ;i < 100; i++)
    {
      LuaObject obj = L.getLuaObject("tb");
      Object runnable = obj.createProxy("java.lang.Runnable");
        Thread thread = new Thread((Runnable) runnable);
      thread.start();
    }
    System.out.println("end main");
  }
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.