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 aCamelContext
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
All Methods Instance Methods Abstract Methods Modifier and Type Method Description void
addRoutesToCamelContext(CamelContext context)
Adds the routes from this Route Builder to the CamelContext.void
addTemplatedRoutesToCamelContext(CamelContext context)
Adds the templated routes from this Route Builder to the CamelContext.Set<String>
updateRoutesToCamelContext(CamelContext context)
Adds or updates the routes from this Route Builder to the CamelContext.
-
-
-
Method Detail
-
addRoutesToCamelContext
void addRoutesToCamelContext(CamelContext context) throws Exception
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
void addTemplatedRoutesToCamelContext(CamelContext context) throws Exception
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
Set<String> updateRoutesToCamelContext(CamelContext context) throws Exception
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
-
-