lib/patterns/factory.js
function FactoryComponent(id, fn, asm) {
  Component.call(this, id, fn, asm);
  this._fn = fn;
}
function FactoryComponent(id, fn, asm) {
  Component.call(this, id, fn, asm);
  this._fn = fn;
}
function FactoryComponent ( id , fn , asm ) { Component . call ( this , id , fn , asm ) ; this . _fn = fn ; }
A component created using a factory function.

Objects will be created by calling the factory function with any required
dependencies and returning the result.

@constructor
@param {string} id - The id of the component.
@param {object} fn - The module containing the object factory.
@param {number} asm - The assembly from which the component was loaded.
@protected
A component created using a factory function .