Hi, as far as I know enums are generally not supported by Flex. That's why the GraniteDS Guys created a SWF-Lib that contains some custom classes that sort of simulate Enums using the same algorithm you could use to provide Enums to JDKs before 1.5.
As I ran into the problem in combination with BlazeDS, I created a version that works without the GraniteDS libs and I didn't have to use the GraniteDS Generator 3 ... it allready works with 2.x. I documented everything in my Confluence ... mabe it helps you. http://dev.c-ware.de/confluence/display/PUBLIC/Flexmojos+generated+AS3+model+with+Enum+support+using+BlazeDS Chris 2010/5/4 aparrish <[email protected]> > Marvin: > > Is there a way for me to use the other version of granite from 3.4 > Flex Mojos? > > -Adam > > On May 3, 6:57 pm, Marvin Froeder <[email protected]> wrote: > > Flexmojos 3.6.1 uses granite 2.1 by default, may be that is what is > giving > > you troubles? > > > > VELO > > > > > > > > On Mon, May 3, 2010 at 7:40 PM, aparrish <[email protected]> wrote: > > > Hey: > > > > > I have been using gas 3 generation with 3.4 Flex Mojos to this day > > > fine. Specifically ENUM generation via an enumTemplate clause like the > > > one included in the following flex mojos configuration: > > > > > <plugin> > > > <groupId>org.sonatype.flexmojos</groupId> > > > <artifactId>flexmojos-maven-plugin</artifactId> > > > <version>${flex.mojos.version}</version> > > > <executions> > > > <execution> > > > <goals> > > > <goal>generate</goal> > > > </goals> > > > <configuration> > > > <baseOutputDirectory>$ > > > {project.build.directory}/generated-sources/flex-mojos > > > </baseOutputDirectory> > > > <outputDirectory>$ > > > {project.build.sourceDirectory}</outputDirectory> > > > <outputEnumToBaseOutputDirectory>true</ > > > outputEnumToBaseOutputDirectory> > > > <includeJavaClasses> > > > <includeClass>com.snip.dto.*</ > > > includeClass> > > > <includeClass>com.snip.AddendumStatus</ > > > includeClass> > > > > > <includeClass>com.snip.enums.ContractDurationEnum</includeClass> > > > </includeJavaClasses> > > > <entityTemplate> > > > <param>${basedir}/src/main/template/ > > > entityBase.gsp</param> > > > <param>${basedir}/src/main/template/ > > > entity.gsp</param> > > > </entityTemplate> > > > <beanTemplate> > > > <param>${basedir}/src/main/template/ > > > beanBase.gsp</param> > > > <param>${basedir}/src/main/template/ > > > bean.gsp</param> > > > </beanTemplate> > > > <interfaceTemplate> > > > <param>${basedir}/src/main/template/ > > > interfaceBase.gsp</param> > > > <param>${basedir}/src/main/template/ > > > interface.gsp</param> > > > </interfaceTemplate> > > > <enumTemplate> > > > <param>${basedir}/src/main/template/ > > > enum.gsp</param> > > > </enumTemplate> > > > </configuration> > > > </execution> > > > </executions> > > > <configuration> > > > <configurationReport>true</configurationReport> > > > <debug>true</debug> > > > <locales> > > > <param>en_US</param> > > > </locales> > > > <sourcePaths> > > > <path>${basedir}/src/main/flex</path> > > > <path>${basedir}/src/main/resources</path> > > > <path>${basedir}/target/generated-sources/flex- > > > mojos/</path> > > > </sourcePaths> > > > </configuration> > > > </plugin> > > > </plugins> > > > > > I just upgraded to use some of the RIATest and FlexMonkey hooks in > > > 3.6.1. However every time I generate the ENUMS for my previously > > > working code I end up with classes like public class AttachmentType > > > extends Enum { > > > > > Enum is org.granite.util.Enum > > > > > Was this intentional? If so what is the desired way forward? > > > > > What if I just want my old enumTemplate that was working just fine to > > > continue to be used in 3.6.1 - is that documented somewhere? > > > > > thanks in advance! > > > > > -- > > > 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]<flex-mojos%[email protected]> > <flex-mojos%[email protected]<flex-mojos%[email protected]> > > > > > For more options, visit this group at > > >http://groups.google.com/group/flex-mojos > > > > >http://flexmojos.sonatype.org/ > > > > -- > > 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]<flex-mojos%[email protected]> > > For more options, visit this group athttp:// > groups.google.com/group/flex-mojos > > > > http://flexmojos.sonatype.org/ > > -- > 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]<flex-mojos%[email protected]> > For more options, visit this group at > http://groups.google.com/group/flex-mojos > > http://flexmojos.sonatype.org/ > -- 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 http://flexmojos.sonatype.org/
