How would one do dependency injection in scala?

Fabian picture Fabian · Apr 1, 2010 · Viewed 29.9k times · Source

I'm still at the beginning in learning scala in addition to java and i didn't get it how is one supposed to do DI there? can or should i use an existing DI library, should it be done manually or is there another way?

Answer

Dan Story picture Dan Story · Apr 1, 2010

Standard Java DI frameworks will usually work with Scala, but you can also use language constructs to achieve the same effect without external dependencies.