SpringExamples and Java2AS
Troy Gardner <[email protected]>
| Newsgroups | gmane.comp.java.openamf.user |
|---|---|
| Message-ID | <[email protected]> |
> > This was checked in week ago, when did you check it out? It's part of the > > Spring Example (org.openamf.examples.spring). > > im talking about the actionscript code, not the java code :) > Oops, I checked it in, should show up in a day or two on the web. The relevant test class is 'springTestClient.fla' which demonstrates simple 'hello world' spring example, a more complex using a service interface and a concrete service on the java side (the 'Buenos Dias' example, then finally sending concrete classes with an interfaces round trip. Mimicing (and mapping) the java and *as with the exception that there isn't a spring framework on the AS side. This is dependent on a change to ASTranslator.jar, which in theory should be in the latest check in, but I haven't checked yet, I submitted a patch (and checked in a version of ASTranslator 1.5.8) with it. This is useful if your used to using Spring as both the service and the arguments (e.g. IHaveName instead of Person) are decoupled at runtime rather than compile time, so you could have a concrete DebugPerson class for debugging, and another for production that saves to the database, etc. Read more on Spring Framework on how this can help. Also checked in the Java2As utility, creates stub AS classes and methods from Java equivalents. Say you have a Java Person class, and you want to create an AS 2 class of it, Java2AS will eliminate the getters and setter creation for those exposed via JavaBean accessors. Sadly it doesn't actually translate the inside of the methods, all methods or variables. Troy Gardner -"How you live your seconds, is how you live your days, is how you live your life..." http://www.troygardner.com -my world http://www.troyworks.com - building Rich Internet Applications http://www.intrio.com -helping bridge the gap between the humans and machines. Home of the Flickey ------------------------------------------------------- SF.Net email is sponsored by: Discover Easy Linux Migration Strategies from IBM. Find simple to follow Roadmaps, straightforward articles, informative Webcasts and more! Get everything you need to get up to speed, fast. http://ads.osdn.com/?ad_id=7477&alloc_id=16492&op=click