By showing how IoC can result in simpler, moreflexible code, you‘ll also be able to see why IoC has attracted so muchinterest of late.The Theory of IoC.IoC takes a different approach — with IoC, the JDBCDataManger would declare its need for a DataSource and have one provided to it by an IoC framework. This means that the component would no longer need to know how to get the dependency, resulting in cleaner, more focused, and more flexible code.IoC Frameworks.阅读全文>
发表于 @ 2007年04月10日 10:37:00|评论(loading...)|收藏