你能在 GWT 客户端中使用 Java Reflection api吗 [英] Can you use Java Reflection api in GWT client
本文介绍了你能在 GWT 客户端中使用 Java Reflection api吗的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
是否可以在 GWT 客户端使用 java 反射 api?我想使用反射来查找 Javabean 上的属性值.这可能吗?
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?
推荐答案
我去过那里,解决方案确实是使用延迟绑定和生成器.您可以在此处看到使用生成器来克服 GWT 客户端中缺少反射的情况:
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/
希望有帮助.
这篇关于你能在 GWT 客户端中使用 Java Reflection api吗的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文