public final class RestContextRefDefinitionHelper extends Object
RestContextRefDefinition.| Modifier and Type | Method and Description |
|---|---|
static List<RestDefinition> |
lookupRests(org.apache.camel.CamelContext camelContext,
String ref)
Lookup the rests from the
RestContextRefDefinition. |
public static List<RestDefinition> lookupRests(org.apache.camel.CamelContext camelContext, String ref)
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 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
CamelContext.camelContext - the CamelContextref - the id of the
RestContextRefDefinition to
lookup and get the routes.Apache Camel