你可以在GWT客户端中使用Java反射api吗? [英] Can you use Java Reflection api in GWT client

查看:108
本文介绍了你可以在GWT客户端中使用Java反射api吗?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

是否有可能在GWT客户端使用java反射api?我想使用反射来查找Javabean上属性的值。这可能吗?

解决方案

我一直在那里,解决方案确实是使用延迟绑定和生成器。您可以在这里看到使用Generators来克服GWT客户端缺乏反射:

http://jpereira.eu/2011/01/30/wheres-my-java-reflection/



希望它有帮助。


IS it possible to use the java reflection api in GWT client side? I want to use reflections to find the value of a property on a Javabean. Is this possible?

解决方案

I've been there and the solution indeed is to use Deferred Binding and Generators. You can see a use of Generators to overcome the lack of Reflection in GWT client here:

http://jpereira.eu/2011/01/30/wheres-my-java-reflection/

Hope it helps.

这篇关于你可以在GWT客户端中使用Java反射api吗?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆