pyricau / diy

Home Page:https://blog.p-y.wtf/diy-your-own-dependency-injection-library

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

DIY: your own Dependency Injection library!

This repository host the code presented in this article: https://blog.p-y.wtf/diy-your-own-dependency-injection-library

You should be able to open this project with IntelliJ, then run the main() function in CoffeeExample.kt.

Repository contents

  • diy-lib: the runtime library and annotations
  • diy-processor: the @Inject and @Component KSP processors.
  • coffee: CoffeeExample.kt shows different ways of setting up DI. Beware, there's a thermosiphon in there.

About

https://blog.p-y.wtf/diy-your-own-dependency-injection-library

License:Apache License 2.0


Languages

Language:Kotlin 100.0%