Declarative Context Adapters

The first post in this series introduced the problem of accessing IoC container features dynamically. We brushed over two common patterns: Global Container (or Static Service Locator) Injected Context Before we move on from this topic, I’d like to look at one more pattern in this theme that may not be in common use, but…

2

Explicit Context Dependencies

As a follow up from my last post about Global Container vs. Injected Context, I would like to share this snippet from Component Software, which casts the difference between the two approaches in another light: "A software component is a unit of composition with contractually specified interfaces and explicit context dependencies only. …" Under this…

1

Container-Managed Application Design, Prelude: Where does the Container Belong?

There is surprisingly little information out there in cyberspace on how IoC containers should fit into application architectures. In parallel with my MEF/Ruby series, I’m going to discuss some of the principles that I believe should be applied to “container-managed” application design. The Enigmatic Ideal In the world of systems built using dependency injection, you…

18