Quick Question: if I am implementing an extension ...
# kodein
a
Quick Question: if I am implementing an extension method for a Java class, what's the best practice for pushing DI/Kodein into the extension method? There's some behaviour configuration which I want to be able to vary in tests, but I don't have a clear factory pattern to work with because extension methods are resolved statically.
s
I don't see any other way than to pass the
DI
container as a parameter
👍 1