Skip to content

Let's explore various possible ways of using the Scala language to perform dependency injection.

Notifications You must be signed in to change notification settings

saraiva132/dependencyinjection

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Dependency injection in Scala

Let's explore various possible ways of using the Scala language to perform dependency injection without the need for any framework or run-time magic (Looking at you Guice). Just safe compile-time dependency wiring.

Approaches:

  • Cake Pattern
  • Thin cake pattern
  • Constructor Parameter
  • Macwire (uses MACROS)
  • Abstract dependencies
  • Structural typing (as class constructor parameter)
  • Implicits
  • Reader Monad

About

Let's explore various possible ways of using the Scala language to perform dependency injection.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages