public final class RouteContextRefDefinitionHelper extends Object
RouteContextRefDefinition
.Modifier and Type | Method and Description |
---|---|
static List<RouteDefinition> |
lookupRoutes(ModelCamelContext camelContext,
String ref)
Lookup the routes from the
RouteContextRefDefinition . |
public static List<RouteDefinition> lookupRoutes(ModelCamelContext camelContext, String ref)
RouteContextRefDefinition
.
This implementation 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 ModelCamelContext
and each
context should have their own instances of the routes. This is to ensure no side-effects 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 ModelCamelContext
.
camelContext
- the CamelContextref
- the id of the RouteContextRefDefinition
to lookup and get the routes.Copyright © 2007–2016 The Apache Software Foundation. All rights reserved.