public final class RouteTemplateHelper extends Object
| Modifier and Type | Method and Description |
|---|---|
static void |
loadRouteTemplateFromLocation(org.apache.camel.CamelContext camelContext,
org.apache.camel.spi.RouteTemplateLoaderListener listener,
String templateId,
String location)
Loads the route template with the given template id from a given location.
|
public static void loadRouteTemplateFromLocation(org.apache.camel.CamelContext camelContext,
org.apache.camel.spi.RouteTemplateLoaderListener listener,
String templateId,
String location)
throws Exception
CamelContext.camelContext - the camel contextlistener - optional listener for when a route template is being loadedtemplateId - the template idlocation - location of the route template to load as a resource such as from classpath or file systemException - is thrown if any kind of error loading the route templateApache Camel