lib/ConfigLoader.js
function ConfigLoader(strategies, logger) {
  this.strategies = [];

  if (logger) {
    if (typeof logger.debug !== 'function') {
      throw new Error('Provided logger is required to have method debug().');
    }
    this.logger = logger;
  }

  if (strategies && !(strategies instanceof Array)) {
    throw new Error('Argument \'strategies\' must be an array.');
  }

  for (var i = 0; i < strategies.length; i++) {
    this.add(strategies[i]);
  }
}
function ConfigLoader(strategies, logger) {
  this.strategies = [];

  if (logger) {
    if (typeof logger.debug !== 'function') {
      throw new Error('Provided logger is required to have method debug().');
    }
    this.logger = logger;
  }

  if (strategies && !(strategies instanceof Array)) {
    throw new Error('Argument \'strategies\' must be an array.');
  }

  for (var i = 0; i < strategies.length; i++) {
    this.add(strategies[i]);
  }
}
function ConfigLoader ( strategies , logger ) { this . strategies = [ ] ; if ( logger ) { if ( typeof logger . debug !== 'function' ) { throw new Error ( 'Provided logger is required to have method debug().' ) ; } this . logger = logger ; } if ( strategies && ! ( strategies instanceof Array ) ) { throw new Error ( 'Argument \'strategies\' must be an array.' ) ; } for ( var i = 0 ; i < strategies . length ; i ++ ) { this . add ( strategies [ i ] ) ; } }
ConfigLoader
Represents a configuration loader that loads a configuration through a list of strategies.

@constructor
ConfigLoader Represents a configuration loader that loads a configuration through a list of strategies .