Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/rstraub/scala-dependency-injection

Breakable Toy to try out some ways of achieving dependency injection using idiomatic Scala.
https://github.com/rstraub/scala-dependency-injection

Last synced: about 2 months ago
JSON representation

Breakable Toy to try out some ways of achieving dependency injection using idiomatic Scala.

Awesome Lists containing this project

README

        

# Scala Dependency Injection

[Breakable Toy](https://scienceofcraftdotblog.wordpress.com/2021/02/28/breakable-toys/) to try out some ways of achieving dependency injection using idiomatic Scala.
This project demonstrates the following ways:
1. Manual Injection. Using new and lazy vals
2. DI Framework with MacWire.
3. Modules (combined with either manual or a DI framework)

## References

This repo closely follows [this article](https://di-in-scala.github.io/) by Adam Warski.