Hi,
I'm wondering why the AbstractFacade is using WeakReference as values for its component map.
I unterstand that the map is a WeakHashMap, so that a component can be released if its unique key is not referenced anymore.
However, I don't understand why the values are wrapped into weakreferences.
For example a Model can be released even if it's unique key is still referenced. In this case, it's impossible to remove the Node of this Model from the view, since retrieving the Model from the facade will generate a new instance.
I'm I missing something? Is there another mechanism to prevent a Model whose unique key is referenced and with a Node in the scene graph from being garbage collected?
Thanks for your help,
--
Antoine Mischler