Few ideas
- You could externalize sub-widget injection to be outside the widgets.
Currently ModelScreenWidget has list of subWidgets - a somewhat weakly
typed collection. If you want dependencies to be more specific, may help
clean things up to externalize.. or externalization may help set pattern
up for making dependencies specific.
- Helps test. esp. if bulk of system is DI based.
- A nice pattern to follow. makes system more passive(IOC ish) and
pluggable.
Harmeet
On 15/05/10 10:15 PM, Adrian Crum wrote:
How would we use dependency injection in the screen widgets?
-Adrian