I’m converting from annotation based app to DSL ba...
# spring
b
I’m converting from annotation based app to DSL based app.
Copy code
@Target(AnnotationTarget.FUNCTION, AnnotationTarget.PROPERTY, AnnotationTarget.VALUE_PARAMETER, AnnotationTarget.CLASS, AnnotationTarget.FIELD)
@Retention(AnnotationRetention.RUNTIME)
@Inherited
@Qualifier
annotation class Extra
If there are multiple beans implementing the same interface, we used the Annotation class using the above @Qualifier. This time, I think that there are the following methods when it comes to describing it in Bean DSL. a: Define it as ref<>() where necessary in the Bean DSL. b: Specify with @Qualifier during constructor injection If you know other one how to implement it, please let tell me...😅
s
You should avoid using qualifier which is not a first class citizen in functional world and use bean names instead. If you really need qualifier we have an util method for that, but that's not something I would recommand.
b
Ok, I understands. I will try to use only dsl definitions:) Thank you😁