Details
-
New Feature
-
Status: Resolved
-
Major
-
Resolution: Fixed
-
None
-
None
-
Unknown
Description
Both camel-quarkus and camel-k have now a concept of routes loader which allow to customize how and if routes are loaded in the case of camel-quarkus or to provide support for routes written in additional languages in the case of camel-k.
It would be nice to introduce an official SPI in camel and leverage as example in camel-main, so one could write something like:
Main main = new Main() main.addRoutes( "classpath:my.company.MyRouteImpl.class", "file:/etc/camel/integration.js", ... ); main.run()
And loading of the routes is the delegated to a loader discovered by camel using the SPI mechanic.
We could also provide some helpers similar to what we have as today to load XML routes like:
Routes.load(context, "file:/etc/camel/integration.js");
Attachments
Issue Links
- is part of
-
CAMEL-15560 generic route loader
- Resolved
- relates to
-
CAMEL-11565 Modular DefaultCamelContext in terms of loading and starting routes
- Resolved
-
CAMEL-14066 Split route parsing from the main CamelContext api
- Resolved