jamesnetherton commented on code in PR #4449:
URL: https://github.com/apache/camel-quarkus/pull/4449#discussion_r1090348835
##########
docs/modules/ROOT/pages/user-guide/cdi.adoc:
##########
@@ -178,6 +178,41 @@ public class CamelRoute extends RouteBuilder {
}
----
+As an alternative to `@Named`, you may also use
`io.smallrye.common.annotation.Identifier` to name and identify a bean. Note
that the bean is annotated with `@Unremovable`, since `@Identifier` is not a
bean defining annotation and thus Quarkus may potentially remove the bean if it
considers it unused.
+
Review Comment:
> Any idea if it will be integrated in Quarkus also ?
I can ask. But things are a bit different for them. Typically they don't
have the scenario that we have in Camel where you define a bean and never refer
to it via an injection point, CDI observer etc. So it's not so necessary for
them.
--
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]