Davide Giuseppe Farella
04/25/2023, 12:14 PM@Named("abc")
annotation class Abc
It doesn't seem to be working consistently, as declaring this doesn't work
class Module {
@Factory
@Abc
fun abc() = "abc"
}
While this does work
class Module {
@Factory
@Named("abc")
fun abc() = "abc"
}
I have other cases where it worked, I don't remember where, I could check if neededarnaud.giuliani
05/09/2023, 2:58 PM@Named()
on needed definition, and function/constructor arguments that you need to passDavide Giuseppe Farella
05/09/2023, 3:00 PMAfterwards I realized I was providing the wrongI have other cases where it worked, I don’t remember where, I could check if needed
Int
in “other cases” 😄
But if I’m not mistaken that works on Dagger and I find it very clean 🙂arnaud.giuliani
05/09/2023, 3:10 PMnamed
annotation or function where you need itDavide Giuseppe Farella
05/09/2023, 3:12 PM@MyQualifier
over @Named(MY_QUALIFIER)
arnaud.giuliani
05/09/2023, 4:51 PM