puremvc
|
|
« Reply #1 on: September 19, 2008, 04:56:08 » |
|
Nothing wrong with making the view component implement an interface. If you were stripping these components out of your PureMVC app and say, migrating it to Cairngorm, you'd probably still use the same scheme you'd just put the factory in a different place, right? So portability isn't really an issue. However the 'proxy as view component factory' isn't the best concept. This factory has nothing to do with the model, and by placing this UI factory code there, you make the model less portable. If you were re-using this model in another app with a completely different UI, then this factory would be an unwelcome inclusion in that app. This is controller region code. A command would be a better place for the UI factory.
-=Cliff>
|