Skip to content

Latest commit

 

History

History
11 lines (7 loc) · 527 Bytes

README.md

File metadata and controls

11 lines (7 loc) · 527 Bytes

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.