public final class RouteContextRefDefinitionHelper extends Object
RouteContextRefDefinition.| Modifier and Type | Method and Description |
|---|---|
static List<RouteDefinition> |
lookupRoutes(CamelContext camelContext,
String ref)
Lookup the routes from the
RouteContextRefDefinition. |
public static List<RouteDefinition> lookupRoutes(CamelContext camelContext, String ref)
RouteContextRefDefinition.
This implmementation must be used to lookup the routes as it performs a deep clone of the routes
as a RouteContextRefDefinition can be re-used with multiple CamelContext and each
context should have their own instances of the routes. This is to ensure no side-effefts and sharing
of instances between the contexts. For example such as property placeholders may be context specific
so the routes should not use placeholders from another CamelContext.camelContext - the CamelContextref - the id of the RouteContextRefDefinition to lookup and get the rotues.Apache Camel