A (kind-of) Dependency Injection in Scala

The problem While projects evolve, the lines of code increase and the dependencies between the classes are becoming more and more complicated. With the absence of some Dependency Injection (DI) framework/library, this ends up quickly in having to pass instances here and there through constructors of classes. The constructors may end up having something like 10+ arguments. To make things worse, for some cases, these arguments are not used by the logic of the classes themselves, but instead, they are just used to create subclasses! [Read More]

OSGi: Finding the way to JEE and JSF

Note: You may find the complete source code for this tutorial here. Combining the modularity offered by OSGi with the EE technologies may result to powerful, scalable and maintainable applications. Eclipse Virgo bridges OSGi and JEE worlds and provides a “completely module-based Java application server”. Even if the Virgo documentation provides detailed explanations, it seemed difficult to find tutorials that are functional and build up to a JEE Web application that is powered by OSGi bundles and services. [Read More]