You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@camel.apache.org by "squakez (via GitHub)" <gi...@apache.org> on 2026/04/12 08:05:23 UTC
Re: [I] Auto-discover/load RouteBuilder from Maven dependency (Jar) [camel-k]
squakez commented on issue #6502:
URL: https://github.com/apache/camel-k/issues/6502#issuecomment-4231045478
I wonder if the usage of `@ApplicationScoped` from Quarkus runtime would suffice to have this done. Something like:
```java
@ApplicationScoped
public class MyRoute extends RouteBuilder {
public void configure() {
from("timer:bar").log("Hi");
}
}
```
so, annotating this in the dependency. In any case, this would have a limitation to consider: the build time scan of the route, used by the operator to discover capabilities, component, etc, would be skipped limiting the power of the operator. I think that's the main feature of the operator and this approach would defeat it.
--
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: commits-unsubscribe@camel.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org