function resolve(opt) {
	if (Strategies.Base.isPrototypeOf(opt)) {
		return opt;
	} else if (_.isString(opt)) {
		let SerializerClass = getByName(opt);
		if (SerializerClass)
			return SerializerClass;
		else
			throw new BrokerOptionsError(`Invalid strategy type '${opt}'.`, { type: opt });

	} else if (_.isObject(opt)) {
		let SerializerClass = getByName(opt.type || "RoundRobin");
		if (SerializerClass)
			return SerializerClass;
		else
			throw new BrokerOptionsError(`Invalid strategy type '${opt.type}'.`, { type: opt.type });
	}

	return Strategies.RoundRobin;
}
function resolve(opt) {
	if (Strategies.Base.isPrototypeOf(opt)) {
		return opt;
	} else if (_.isString(opt)) {
		let SerializerClass = getByName(opt);
		if (SerializerClass)
			return SerializerClass;
		else
			throw new BrokerOptionsError(`Invalid strategy type '${opt}'.`, { type: opt });

	} else if (_.isObject(opt)) {
		let SerializerClass = getByName(opt.type || "RoundRobin");
		if (SerializerClass)
			return SerializerClass;
		else
			throw new BrokerOptionsError(`Invalid strategy type '${opt.type}'.`, { type: opt.type });
	}

	return Strategies.RoundRobin;
}
function resolve ( opt ) { if ( Strategies . Base . isPrototypeOf ( opt ) ) { return opt ; } else if ( _ . isString ( opt ) ) { let SerializerClass = getByName ( opt ) ; if ( SerializerClass ) return SerializerClass ; else throw new BrokerOptionsError ( ` ${ opt } ` , { type : opt } ) ; } else if ( _ . isObject ( opt ) ) { let SerializerClass = getByName ( opt . type || "RoundRobin" ) ; if ( SerializerClass ) return SerializerClass ; else throw new BrokerOptionsError ( ` ${ opt . type } ` , { type : opt . type } ) ; } return Strategies . RoundRobin ; }
Resolve strategy by name

@param {object|string} opt
@returns {Strategy}
@memberof ServiceBroker
Resolve strategy by name
Resolve a strategy