jamesnetherton commented on code in PR #4449:
URL: https://github.com/apache/camel-quarkus/pull/4449#discussion_r1090257014
##########
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:
Yeah - I actually had that code originally and for some reason thought it
was maybe not a good idea. So I removed it.
But thinking about it more, it's seems fine. So I can put it back again to
improve the UX.
--
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]