从中间层Java类生成ActionScript值对象 [英] Generating ActionScript value objects from middle-tier Java classes

查看:148
本文介绍了从中间层Java类生成ActionScript值对象的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在使用远程处理(通过BlazeDS)的Flex / Java应用程序堆栈中,需要在客户端(使用ActionScript)和服务器(使用Java)中维护在客户端和服务器之间来回传递的用于保存数据的类。



我想要一种方法来维护Java中的这些类,并且拥有由构建过程生成的相应的ActionScript值对象类。

解决方案

查看Granite Data Services项目中的AS3生成器:

http://www.graniteds.org



如果我正确地记得它是一个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:

http://www.graniteds.org

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屋!

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