mkouba commented on issue #5464: URL: https://github.com/apache/camel-quarkus/issues/5464#issuecomment-1782658927
I don't know how exactly the "primary beans" work but in Quarkus you can [inject multiple beans of the same type](https://quarkus.io/guides/cdi-reference#injecting-multiple-bean-instances-intuitively) with `@Inject @All List<Foo> foos`/`Arc.container().listAll()` and the list is sorted by priority as defined by `io.quarkus.arc.InjectableBean#getPriority()`; higher priority goes first. The `@jakarta.annotation.Priority` annotation can be used to assign the priority to a class bean, producer method or producer field. The priority is also honored if using the programmatic lookup via `jakarta.enterprise.inject.Instance`. -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected]
