org.apache.camel.model
Class RestContextRefDefinitionHelper
java.lang.Object
org.apache.camel.model.RestContextRefDefinitionHelper
public final class RestContextRefDefinitionHelper
- extends Object
Helper for RestContextRefDefinition.
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
lookupRests
public static List<RestDefinition> lookupRests(CamelContext camelContext,
String ref)
- Lookup the rests from the
RestContextRefDefinition.
This implementation must be used to lookup the rests as it performs a deep clone of the rests
as a RestContextRefDefinition 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 RestContextRefDefinition to lookup and get the routes.
- Returns:
- the rests.
Apache Camel