axiom-core/src/main/java/org/axiom/service/ControlChannelBootstrapper.java
public void bootstrap(final ControlChannel channel) {
        log.info("Bootstrapping control channel.");
        notNull(channel, "Control channel cannot be null.");

        final Configuration config = channel.getConfig();
        if (config == null) {
            throw new LifecycleException(format(
                "Context Registry is incorrectly configured: bean for id {0} is not present.",
                Environment.CONFIG_BEAN));
        }
        final RouteConfigurationScriptEvaluator evaluator =
            channel.getRouteScriptEvaluator();

        final RouteScriptLoader loader =
            new RouteScriptLoader(config.getString(DEFAULT_SCRIPT_URI), evaluator);
        channel.load(loader);

        final Iterator iter = config.getKeys(EXTENDED_SCRIPTS_PREFIX);
        while (iter.hasNext())  {
            final String entry = iter.next().toString();
            channel.load(new RouteScriptLoader(config.getString(entry), evaluator));
        }
    }
/**
     * Bootstraps the supplied {@link ControlChannel}. The value of the property {@code axiom.bootstrap.script.url} is first retrieved from the configuration store, and the script at this location is evaluated directly.
     * If one of the {@code axiom.bootstrap.extended.script.url} or user defined {@code axiom.bootstrap.extended.script.&lt;name&gt;} properties is set,
     * then these scripts are evaluated next (the user defined ones only if they represent valid file system resources).
     *
     * @param channel The {@link ControlChannel} to bootstrap.
     */
Bootstraps the supplied  ControlChannel. The value of the property  axiom.bootstrap.script.url is first retrieved from the configuration store, and the script at this location is evaluated directly.
If one of the  axiom.bootstrap.extended.script.url or user defined  axiom.bootstrap.extended.script.<name> properties is set,
then these scripts are evaluated next (the user defined ones only if they represent valid file system resources).

@param channel The  ControlChannel to bootstrap.
Bootstraps the supplied ControlChannel . The value of the property axiom . bootstrap . script . url is first retrieved from the configuration store and the script at this location is evaluated directly . If one of the axiom . bootstrap . extended . script . url or user defined axiom . bootstrap . extended . script . <name > properties is set then these scripts are evaluated next ( the user defined ones only if they represent valid file system resources ) . @param channel The ControlChannel to bootstrap .
public void bootstrap(final ControlChannel channel) {
        log.info("Bootstrapping control channel.");
        notNull(channel, "Control channel cannot be null.");
        final Configuration config = channel.getConfig();
        if (config == null) {
            throw new LifecycleException(format(
                "Context Registry is incorrectly configured: bean for id {0} is not present.",
                Environment.CONFIG_BEAN));
        }
        final RouteConfigurationScriptEvaluator evaluator =
            channel.getRouteScriptEvaluator();
        final RouteScriptLoader loader =
            new RouteScriptLoader(config.getString(DEFAULT_SCRIPT_URI), evaluator);
        channel.load(loader);
        final Iterator iter = config.getKeys(EXTENDED_SCRIPTS_PREFIX);
        while (iter.hasNext())  {
            final String entry = iter.next().toString();
            channel.load(new RouteScriptLoader(config.getString(entry), evaluator));
        }
    }
public void bootstrap ( final ControlChannel channel ) { log . info ( "Bootstrapping control channel." ) ; notNull ( channel , "Control channel cannot be null." ) ; final Configuration config = channel . getConfig ( ) ; if ( config == null ) { throw new LifecycleException ( format ( "Context Registry is incorrectly configured: bean for id {0} is not present." , Environment . CONFIG_BEAN ) ) ; } final RouteConfigurationScriptEvaluator evaluator = channel . getRouteScriptEvaluator ( ) ; final RouteScriptLoader loader = new RouteScriptLoader ( config . getString ( DEFAULT_SCRIPT_URI ) , evaluator ) ; channel . load ( loader ) ; final Iterator iter = config . getKeys ( EXTENDED_SCRIPTS_PREFIX ) ; while ( iter . hasNext ( ) ) { final String entry = iter . next ( ) . toString ( ) ; channel . load ( new RouteScriptLoader ( config . getString ( entry ) , evaluator ) ) ; } }
Bootstraps the supplied {@link ControlChannel}.
Bootstraps the supplied { @link ControlChannel } .