diy

Project Url: pyricau/diy
More: Author   ReportBugs   OfficialWebsite   
Tags:

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.
Apps
About Me
GitHub: Trinea
Facebook: Dev Tools