Package org.apache.camel
Interface RoutesBuilder
public interface RoutesBuilder
A routes builder is capable of building routes using the builder and model classes.
Eventually the routes are added to a
CamelContext
where they run inside.
This interface is not intended to be used by Camel end users. Instead, Camel users will use
org.apache.camel.builder.RouteBuilder to build routes in Java DSL.-
Method Summary
Modifier and TypeMethodDescriptionvoid
addRoutesToCamelContext
(CamelContext context) Adds the routes from this Route Builder to the CamelContext.void
Adds the templated routes from this Route Builder to the CamelContext.updateRoutesToCamelContext
(CamelContext context) Adds or updates the routes from this Route Builder to the CamelContext.
-
Method Details
-
addRoutesToCamelContext
Adds the routes from this Route Builder to the CamelContext.- Parameters:
context
- the Camel context- Throws:
Exception
- is thrown if initialization of routes failed
-
addTemplatedRoutesToCamelContext
Adds the templated routes from this Route Builder to the CamelContext.- Parameters:
context
- the Camel context- Throws:
Exception
- is thrown if initialization of routes failed
-
updateRoutesToCamelContext
Adds or updates the routes from this Route Builder to the CamelContext.- Parameters:
context
- the Camel context- Returns:
- route ids for the routes that was updated
- Throws:
Exception
- is thrown if initialization of routes failed
-