Package mug.runtime.java

Examples of mug.runtime.java.ReflectedJSJavaObject


        // coerce path
        String qn = JSUtils.asString(l0);
        final JSObject obj = (JSObject) l1;
        Class javaClass = Class.forName(qn);
       
        return new ReflectedJSJavaObject(env, Proxy.newProxyInstance(javaClass.getClassLoader(),
          new Class[] { javaClass },
          new InvocationHandler() {
            public Object invoke(Object ths, Method method, Object[] args) throws Throwable {
              JSObject meth = (JSObject) obj.get(method.getName());
              return JSJavaUtils.coerceJavaType(meth.invoke(ths, args), method.getReturnType());
View Full Code Here

TOP

Related Classes of mug.runtime.java.ReflectedJSJavaObject

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.