简体   繁体   中英

From Java Application to Flex Application

Has anyone had experience taking a full-fledged Java desktop application and replicating the functionality using Flex?

If you have, what are some of the biggest things to watch out for or pay attention to?

What are some recommendations you can make based on your experience?

There could be any number of issues to watch out for. Here's a few that just come to the top of my head:

  • Flash Player restrictions that do not exist in the JVM, such as the ability to reach "outside" of the Player's bounds rectangle (and myriad others).
  • ActionScript 3 has no equivalent of java.lang.reflect.Proxy, unfortunately. This means that (so far) there are no decent mock object frameworks, and limitations with respect to reflection in general.
  • I am not aware of any AOP capabilities on the order of what you will find in Java.
  • Whether or not the Java application is using libraries that have no equivalent in Flex and which you do not wish to write yourself.
  • Java applications can call out to native code with the JNI, whereas this is not yet possible with the Flash Player.

Even if by "Flex" you include the Adobe AIR platform, the environment tends to be much more restricted in general than the JVM. However, don't let that discourage you - you get a lot of benefits from using Flex, such as an ubiquitous runtime, a great language and component development framework, etc. If your Java desktop application is an RIA, then Flex is probably a good candidate for a port.

I'm not sure if replacing a full-fledged Java desktop application with Flex is the best alternative. From Adobe Flex page : Flex is a highly productive, free open source framework for building and maintaining expressive web applications that deploy consistently on all major browsers, desktops, and operating systems.

Adobe AIR is probably a better replacement for desktop applications, if you're considering Adobe realms of products.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM