lib/defaultCommandHandler.js
function (aggregateLock) {
    if (!aggregateLock || !_.isObject(aggregateLock)) {
      var err = new Error('Please pass a valid aggregateLock!');
      debug(err);
      throw err;
    }
    this.aggregateLock = aggregateLock;
  }
function (aggregateLock) {
    if (!aggregateLock || !_.isObject(aggregateLock)) {
      var err = new Error('Please pass a valid aggregateLock!');
      debug(err);
      throw err;
    }
    this.aggregateLock = aggregateLock;
  }
function ( aggregateLock ) { if ( ! aggregateLock || ! _ . isObject ( aggregateLock ) ) { var err = new Error ( 'Please pass a valid aggregateLock!' ) ; debug ( err ) ; throw err ; } this . aggregateLock = aggregateLock ; }
Injects the needed aggregateLock.
@param {Object} aggregateLock The aggregateLock object to inject.
Injects the needed aggregateLock .