I have some questions related to framework dependency. Generally best coding practice says that don't clutter your namespace with framework specific code. For e.g. in case of spring all the dependency should be maintain in config file and there is no spring specific code in your application code (and that is one of the reason to preferring spring config xml file over spring annotation). Same way in case of puremvc its always preferable to don't mix puremvc code in mxml, so your view can work with any framework. But my question is
If we remove spring or puremvc from your code without replacing any other framework then you are end up in few beans (in case of spring) or some truly reusable views (in case of puremvc). But gluing beans or view requires large amount of coding effort, according to me its indirect dependency of framework without using framework specific api.
If we replace spring with other DI framework like pico container then also it requires substantial amount or rework. Which again leads to indirect dependency on framework.
So, why its bad to clutter your our application namespace with framework specific api ? Just we can code for framework specific api (if it really ease out our coding effort substantially).
According to me, just not mixing application namespace with framework specific api doesn't makes your application portable for other framework. Think if you want to move your existing well designed struts application with spring mvc and how much efforts it requires to do so.
Expecting view from other readers.