www/assets/js/model/core/AbstractFactory.js
/**
     * @name _registerBean
     * Register constructor function in scoped object with bean name like key.
     * @param {string} type Bean name.
     * @param {Object} Bean Constructor-function-object which is stocked.
     */
@name _registerBean
Register constructor function in scoped object with bean name like key.
@param {string} type Bean name.
@param {Object} Bean Constructor-function-object which is stocked.
@name _registerBean Register constructor function in scoped object with bean name like key . @param { string } type Bean name . @param { Object } Bean Constructor - function - object which is stocked .
function _registerBean(type, Bean) {
      var proto = Bean.prototype;
      if (typeof proto.init === 'function') {
        _beanTypes[type] = Bean;
      } else {
        neogenz.logger.logError('AbstractFactory.js',
          '_registerBean()',
          'The bean ' + type + ' do not respect the contract.');
      }
      return exports.factory;
    }
function _registerBean ( type , Bean ) { var proto = Bean . prototype ; if ( typeof proto . init === 'function' ) { _beanTypes [ type ] = Bean ; } else { neogenz . logger . logError ( 'AbstractFactory.js' , '_registerBean()' , 'The bean ' + type + ' do not respect the contract.' ) ; } return exports . factory ; }
@name _registerBean
 Register constructor function in scoped object with bean name like key.
@name _registerBean Register constructor function in scoped object with bean name like key .
// only register classes that fulfill the bean contract