| View: | [ 2009 | 2008 | 2007 | 2006 | 2005 | 2004 | 2003 ] |
| Weblogs |
- Implementing IoC with AOP by Bill Burke - [Clicks: 7]
I was thinking about Inversion of Control the other day and a thought crossed my mind. Most frameworks out there make you either pre-declare individual instances of your objects through XML or a runtime call, or they make you create your objects through an API. Why should I have to go through an API to lookup my inverted objects? Could IoC itself be a cross-cutting concern? I thought it would be cool if you could inject dependencies whenever an object is created with a "new" rather than going through an API. Here's some stuff I thought up using JBoss AOP.
http://jboss.org/jbossBlog/blog/bburke/?permalink=Implementing+IoC+with+AOP.html - Apr, 2004