You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@camel.apache.org by GitBox <gi...@apache.org> on 2021/11/04 14:33:28 UTC
[GitHub] [camel-quarkus] davsclaus commented on issue #2978: [Camel 3.12] New feature: route configurations
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: commits-unsubscribe@camel.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org