Flex Binding is done through annotations

2008 October 8
by Sven Busse

Juten Tach,
not very sensational, i know, but yesterday i attended yet another Flex Usergroup Meeting in Hamburg, where our fellow Jens Krause explained to us the basics of binding in Flex. Very nice talk, by the way :)
But there was one point in his talk, where he showed us the generated code of mxml. And there i still saw a [Bindable] tag and i wondered why there is still a metatag in the already generated code.
Today my colleague Hannes and i took a deeper look into the framework and found, that the classes responsible for the binding in flex indeed read those metatags at runtime for finding the bindings. Specifically the class “mx.binding.BindabilityInfo” does this job. Very interesting to see. I ask myself, how much this has an impact on the overall performance of binding.

2 Responses leave one →
  1. 2008 October 9

    hmm, but that would mean binding is done through reflexion which I would doubt. Or is there any other way to access metadata at runtime?

  2. 2008 October 9

    We have scanned through the code and we found, that reflexion is really used for finding the bindings.

Leave a Reply

Note: You can use basic XHTML in your comments. Your email address will never be published.

Subscribe to this comment feed via RSS