public final class CamelContexts extends Object
Modifier and Type | Method and Description |
---|---|
static void |
scriptInitCamelContext(org.apache.camel.CamelContext context,
String initCode,
ClassLoader classLoader)
Run an init script on a camel context
|
public static void scriptInitCamelContext(org.apache.camel.CamelContext context, String initCode, ClassLoader classLoader) throws ScriptException
context
- the context to work oninitCode
- the init code, may be null
or emptyclassLoader
- the classloader to use for the script engine, may be null
ScriptException
- if calling the script failsCopyright © 2016. All Rights Reserved.