Re: SpringExamples and Java2AS

Martin Wood <[email protected]>
Newsgroups gmane.comp.java.openamf.user
Message-ID <[email protected]>
Troy Gardner wrote:
>>>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.

That is great stuff, i'll do an update from CVS in a minute.

I was up until 4am last night reading about Spring :)

I think it will save me a *lot* of time.

Java2As sounds great as well, anything to take away the drudgery of

Something to go the other way would be cool, i'll look into it, if it 
doesnt already exist.

I'll let you know how i get on with the examples.

thanks,

martin


-------------------------------------------------------
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
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.