What is Nostr?
P-Y /
npub19ww…g5sa
2024-01-17 06:18:26
in reply to nevent1q…kf5n

P-Y on Nostr: Now we're ready to use this, let's brew some coffee ``` val linker = Linker() ...

Now we're ready to use this, let's brew some coffee

```
val linker = Linker()
linker.installSingleton {
CoffeeLogger()
}
linker.installSingleton<Heater> {
ElectricHeater(get())
}
linker.install<Pump> {
Thermosiphon(get(), get())
}
linker.install {
CoffeeMaker(get(), get(), get())
}

val coffeeMaker = linker.get<CoffeeMaker>()
coffeeMaker.brew()
```

Hope you enjoyed this, please boost if you would use this DI framework 🤪

#AndroidDev
Author Public Key
npub19wwxc29uufy6rmegf9aza3hkcqdu00s8yyfyhr88mglptysgp3tsz7g5sa