org.apache.camel.model
Class RouteContextRefDefinitionHelper
java.lang.Object
org.apache.camel.model.RouteContextRefDefinitionHelper
public final class RouteContextRefDefinitionHelper
- extends Object
Helper for RouteContextRefDefinition.
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
lookupRoutes
public static List<RouteDefinition> lookupRoutes(CamelContext camelContext,
String ref)
- Lookup the routes from the
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-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 CamelContext.
- Parameters:
camelContext - the CamelContextref - the id of the RouteContextRefDefinition to lookup and get the routes.
- Returns:
- the routes.
Apache Camel