During the play framework meetup in Mai 2015, there were 3 talks about Dependency Injection (DI) in Play 2.4:
-
from Micheal: runtime DI in Java with Guice, the default framework introduced in play 2.4: https://github.com/schleichardt/play-2-4-di-talk
-
from Oleg: runtime DI in Scala with Scaldi: http://scaldi.github.io/scaldi-play-2.4.0-presentation/
-
compile-time DI in Scala with constructor arguments or MacWire: http://de.slideshare.net/yann_s/play-24dimacwire. For that talk, I re-used the TBA application I used at the Ping Conf last year and added a version using MacWire: https://github.com/yanns/TPA/tree/master/frontend/TBA_macwire