davsclaus commented on issue #2978:
URL: https://github.com/apache/camel-quarkus/issues/2978#issuecomment-961062812
Same build time as regular RouteBuilder classes
Add them before regular RouteBuilder
camel-core uses routes loader to load/add routes, and it has logic such as
```
default void loadRoutes(Collection<Resource> resources) throws Exception
{
Collection<RoutesBuilder> builders = findRoutesBuilders(resources);
// add configuration first before the routes
for (RoutesBuilder builder : builders) {
if (builder instanceof RouteConfigurationsBuilder) {
getCamelContext().addRoutesConfigurations((RouteConfigurationsBuilder) builder);
}
}
for (RoutesBuilder builder : builders) {
getCamelContext().addRoutes(builder);
}
}
```
--
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]