Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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.
- Host: GitHub
- URL: https://github.com/rstraub/scala-dependency-injection
- Owner: rstraub
- Created: 2022-02-07T09:21:18.000Z (almost 3 years ago)
- Default Branch: main
- Last Pushed: 2022-02-08T15:17:56.000Z (almost 3 years ago)
- Last Synced: 2024-06-20T22:57:08.258Z (7 months ago)
- Language: Scala
- Size: 19.5 KB
- Stars: 0
- Watchers: 3
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
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.