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

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

问题描述

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

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).

我想要一种仅用 Java 维护这些类的方法,并具有由构建过程生成的相应 ActionScript 值对象类.

I want a way to maintain theses classes in Java only, and have the corresponding ActionScript value object classes generated by the build process.

推荐答案

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

Check out the AS3 generator from the Granite Data Services project:

http://www.graniteds.org

如果我没记错的话,它是一个 Eclipse 插件,应该很容易使用.请记住,如果您从 ActionScript 类中排除了一个属性,当它被发送回 Flex 客户端时,它仍然会被 Blaze 序列化.

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天全站免登陆