Michael Vandendriessche
03/06/2023, 2:55 PM@Qualifier
custom annotations?
For my app I connect to a rest backend as well as an iot device. So I'm making these two annotations
@Qualifier
@Retention(AnnotationRetention.RUNTIME)
annotation class Backend
@Qualifier
@Retention(AnnotationRetention.RUNTIME)
annotation class Device
I can use these annotations multiple times for different objects, right?
Like use the @Backend
custom annotation for the Retrofit instance as well as a provided String and maybe some other objects I will need later on.FunkyMuse
03/06/2023, 2:59 PM@Singleton
Michael Vandendriessche
03/06/2023, 4:00 PMAnselmo Alexandre
03/08/2023, 7:55 AM