| Jon Rose’s Blog | | Enterprise Software Consultant Open Source / Java / Flex Flex Practice Director @ Gorilla Logic, Inc. InfoQ.com RIA Editor |
![]() |
Comments:
Matt on November 7th, 2008 at 11:15 am #
Just want to point out that ArrayCollection is an implementation of an interface, the ICollectionView and IList. So alternatives can be created that mirror the functionality. The only issue is in how serialization works from AMF, which I believe was part of your original problem.
jonr on November 7th, 2008 at 11:21 am #
ArrayCollection’s super class, ListCollectionView, does implement ICollectionView, but ArrayCollection itself doesn’t implement a collection Interface.
jonr on November 7th, 2008 at 3:39 pm #
Hi Matt, I forgot to say thanks for the comment. Also, I have been thinking through this more. If I had created a JonCollection class that implemented ICollectionView and IList and internally delegated the work to an ArrayCollection (lazy initing it / i.e. only instancing it the ArrayCollection object when it was needed). Then used that Object in my model (i.e. Team had an a member that was player of type JonCollection). Would the AMF serialization used my JonCollection rather than the ArrayCollection? Post a comment
|
|