mardi 29 décembre 2009

Flex Enum design pattern and BlazeDS

Still on Enums... Since there is no native support for true Enums in Flex yet, I have used a typesafe design pattern, like this can be done in Java. No problem there, until I wanted to plug them with BlazeDS.

And indeed, BlazeDS does not support natively the type-safe design pattern. It seems possible to tweak the serialiazer / deserializer to handle this, but it is cumbersome - and I am not that familiar with Flex yet. So in the end, I am "simply" removing the enums from my Flex code, since the benefits of the type-safe are not that huge (I'm the only developer for now).

Aucun commentaire:

Enregistrer un commentaire