What is Nostr?
P-Y /
npub19ww…g5sa
2024-01-17 06:11:44
in reply to nevent1q…3rdd

P-Y on Nostr: Ok so, while that Linker class is our entire Dependency Injection framework, we would ...

Ok so, while that Linker class is our entire Dependency Injection framework, we would like a little bit of syntactic sugar to make this easier.

First, we need to be able to add factories, i.e. tell our DI Framework how things should be build:

```
inline fun <reified T> Linker.install(noinline factory: Linker.() -> T) {
factories[T::class.java] = factory
}
```
Author Public Key
npub19wwxc29uufy6rmegf9aza3hkcqdu00s8yyfyhr88mglptysgp3tsz7g5sa