Partager via


Dependency Injection coming in EntLib v4

Just a quick note in case you missed Grigori's announcement on the patterns & practices team's plan to focus on Dependency Injection in the upcoming release of Enterprise Library, now apparently known as v4 (not v3.5 as announced previously). If you have any wish lists please provide them directly to Grigori or on the CodePlex site.

My personal vote is to integrate this deeply with the Policy Injection Application Block, allowing for dependency and policy injection in one fell swoop, for example:

 IMyService = PolicyAndDependencyInjection.GetMeAFullyConstructedAndPolicyEnabledInstanceOf<IMyService>();

Time will tell if that's what we'll get. But I'm paying a visit to Grigori and the team in Redmond next week, so hopefully I'll get a better picture of what they are planning very soon!

Comments

  • Anonymous
    December 05, 2007
    Enterprise Library 4.0 Tom Hollander&#39;s blog has just release a post about Dependency Injection coming

  • Anonymous
    December 09, 2007
    Tom, This is excellent. I am a long-time (in software terms anyway) user of the Castle Project's work. How would you relate V4 (and I realize you might not be able to say too much) with the current state of Castle? Thanks! Damon Carr, CTO agilefactor

  • Anonymous
    December 13, 2007
    It sounds very similar to Spring Framework's Application Context, doesn't it?

  • Anonymous
    December 17, 2007
    I think the important thing is the cmmunity has another alternative. I think this is good for all. Damon