'. '

Component Injection

From APIDesign

(Difference between revisions)
Jump to: navigation, search
Current revision (11:28, 19 February 2010) (edit) (undo)
 
Line 1: Line 1:
A generalization of [[wikipedia::Dependency_injection|injection of dependencies]] to cover also other forms of [[injection]]. Thoroughly discussed in [[Use Modular Architecture|Chapter 7]], Use Modular Architecture. One of the possible strategies includes use of [[Lookup]], another [[Spring]], there is even an option to [[LookupAndSpring|mix them together]] or rely on JDK's own [[ServiceLoader]].
A generalization of [[wikipedia::Dependency_injection|injection of dependencies]] to cover also other forms of [[injection]]. Thoroughly discussed in [[Use Modular Architecture|Chapter 7]], Use Modular Architecture. One of the possible strategies includes use of [[Lookup]], another [[Spring]], there is even an option to [[LookupAndSpring|mix them together]] or rely on JDK's own [[ServiceLoader]].
-
It is necessary to mention that there is very fair comparison of [[dependency injection]] and service locator (like [[Lookup]] and [[ServiceLoader]]) technologies available on [http://martinfowler.com/articles/injection.html Martin Fowler's website] since 2004. [[Lookup]] is more advanced (at least type safe), but the general points made by Martin still hold.
+
It is necessary to mention that there is very fair comparison of [[dependency injection]] and service locator (like [[Lookup]] and [[ServiceLoader]]) technologies available on [http://martinfowler.com/articles/injection.html Martin Fowler's website] since 2004. [[Lookup]] is slightly more advanced (because it is type safe in contrary to Martin's locator), but the general points made by Martin are still perfectly valid.

Current revision

A generalization of injection of dependencies to cover also other forms of injection. Thoroughly discussed in Chapter 7, Use Modular Architecture. One of the possible strategies includes use of Lookup, another Spring, there is even an option to mix them together or rely on JDK's own ServiceLoader.

It is necessary to mention that there is very fair comparison of dependency injection and service locator (like Lookup and ServiceLoader) technologies available on Martin Fowler's website since 2004. Lookup is slightly more advanced (because it is type safe in contrary to Martin's locator), but the general points made by Martin are still perfectly valid.

Personal tools
buy