I usually separate out at least two different models in a project, depending on size. One I think of as the business model, concerned with modeling the problem domain and business logic in pure Java. The other I think of as the 'M' in 'MVC', which functions as transfer objects across the Flex API and as the client model on the Flex side. It's nice since there is usually some "flattening" that can be done in mapping between the two to make things much easier on the Flex side, especially since having different models and mapping between them is something Java is very good at.
That said, I run generator-mojo on the Java transfer objects and generally want everything in those objects to show up on the Flex side. I don't know if there is a way or how to exclude methods or attributes from the generator-mojo. -- Tim On Apr 5, 2009, at 8:55 AM, Davis Ford wrote: > > Hi Tim, I didn't really want to have to change my API on the Java side > just to accomodate Flex. > > Gas3 generator has a way to include or exclude package/class, but not > method? Is there some way to make it ignore that method when it > generates without actually hard-coding it into the Groovy template? > > On Sun, Apr 5, 2009 at 12:27 AM, Tim Fulmer <[email protected]> > wrote: >> >> >> It's part of Java, but not Flex. You may want to serialize the URL >> as >> a string over to the Flex client. >> >> >> On Apr 4, 2009, at 8:56 PM, Davis Ford wrote: >> >>> java.net is part of standard java library...how can I resolve this >>> with action script? >> >> >>> >> > > > > -- > Zeno Consulting, Inc. > home: http://www.zenoconsulting.biz > blog: http://zenoconsulting.wikidot.com > p: 248.894.4922 > f: 313.884.2977 > > > --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Flex Mojos" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/flex-mojos?hl=en?hl=en http://blog.flex-mojos.info/ -~----------~----~----~----~------~----~------~--~---
