M
Matt Baker
Guest
The problem with statics is the tight binding. OO is all about loose coupling. As soon as you use a static…you lose interfaces, you get tight binding, you lose abstraction, you lose service injection, you lose a lot of the capabilities of generics, you hard-code your dependencies, you make mocking difficult to impossible…and so on. Service implementations like OSGI, eclipse platform, and so-on make use of either registered services. Then you have dependency injection frameworks like spring and J2EE. OSGI and eclipse have both gone towards a mix of dependency injection, but use the injection of registered services.
Continue reading...
Continue reading...