从中间层Java类生成ActionScript值对象 [英] Generating ActionScript value objects from middle-tier Java classes
问题描述
我想要一种方法来维护Java中的这些类,并且拥有由构建过程生成的相应的ActionScript值对象类。
查看Granite Data Services项目中的AS3生成器:
如果我正确地记得它是一个Eclipse插件,应该很容易使用。请记住,如果从ActionScript类中排除某个属性,那么当它返回到Flex客户端时,它仍然会被Blaze序列化。
In a Flex / Java app stack using remoting (via BlazeDS), classes to hold data passed back and forth between client and server need to be maintained in both the client (in ActionScript) and server (in Java).
I want a way to maintain theses classes in Java only, and have the corresponding ActionScript value object classes generated by the build process.
Check out the AS3 generator from the Granite Data Services project:
If I recall correctly it's an Eclipse plugin which should be quite easy to use. Just remember that if you exclude a property from the ActionScript class that it will still be serialized by Blaze when it's sent back to the Flex client.
这篇关于从中间层Java类生成ActionScript值对象的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!