The Artima Developer Community
Sponsored Link

Java Buzz Forum
Dependency Injection as an Assembly line pattern

0 replies on 1 page.

Welcome Guest
  Sign In

Go back to the topic listing  Back to Topic List Click to reply to this topic  Reply to this Topic Click to search messages in this forum  Search Forum Click for a threaded view of the topic  Threaded View   
Previous Topic   Next Topic
Flat View: This topic has 0 replies on 1 page
dion

Posts: 5028
Nickname: dion
Registered: Feb, 2003

Dion Almaer is the Editor-in-Chief for TheServerSide.com, and is an enterprise Java evangelist
Dependency Injection as an Assembly line pattern Posted: Jun 10, 2004 9:02 AM
Reply to this message Reply

This post originated from an RSS feed registered with Java Buzz by dion.
Original Post: Dependency Injection as an Assembly line pattern
Feed Title: techno.blog(Dion)
Feed URL: http://feeds.feedburner.com/dion
Feed Description: blogging about life the universe and everything tech
Latest Java Buzz Posts
Latest Java Buzz Posts by dion
Latest Posts From techno.blog(Dion)

Advertisement
Scott Ferguson of Caucho (Resin) likes to think of IoC as an assembly pattern, and this makes the choice of constructor-based versus setter-based versus getter-based small fry... in the implementation... as apposed to the big picture. Working through some dependency injection documentation, I'm finding it better to think of the IoC/DI pattern as an "Assembly Line" pattern. As an Assembly Line pattern, the setter vs constructor issue looks like choosing between metric and British measurement or Phillips vs flat screws. The choice does matter, but it's a minor decision compared to choosing IoC/DI in the first place. The point of the Assembly Line pattern is that the Parts and Chassis are decoupled from the choice of Assembler. The parts need to conform to some rules: like Phillips screws, but otherwise it's straightforward to switch Assemblers from a container to a test suite. Resin IoC Tutorial: Dependency Injection for Resources

Read: Dependency Injection as an Assembly line pattern

Topic: MIDP 2.0 Is Here: Believe the Hype Previous Topic   Next Topic Topic: ATOM vs. RSS - Why can't we all just get along?

Sponsored Links



Google
  Web Artima.com   

Copyright © 1996-2019 Artima, Inc. All Rights Reserved. - Privacy Policy - Terms of Use