www/assets/js/model/core/AbstractFactory.js
/**
     * @name _getBean
     * Get the bean by type in the closed object and return if he's exist.
     * @param {string} type Bean name.
     * @param {Object} initializationObject Object passed to bean constructor.
     */
@name _getBean
Get the bean by type in the closed object and return if he's exist.
@param {string} type Bean name.
@param {Object} initializationObject Object passed to bean constructor.
@name _getBean Get the bean by type in the closed object and return if he ' s exist . @param { string } type Bean name . @param { Object } initializationObject Object passed to bean constructor .
function _getBean(type, initializationObject) {
      var Bean = _beanTypes[type];
      var beanCreated = null;
      try {
        beanCreated = (Bean ? new Bean(initializationObject) : null);
        beanCreated.init(initializationObject);
        return beanCreated;
      } catch (err) {
        neogenz.logger.logError('AbstractFactory.js', '_getBean() of type ' + type, err.message);
        throw err;
      }
    }
function _getBean ( type , initializationObject ) { var Bean = _beanTypes [ type ] ; var beanCreated = null ; try { beanCreated = ( Bean ? new Bean ( initializationObject ) : null ) ; beanCreated . init ( initializationObject ) ; return beanCreated ; } catch ( err ) { neogenz . logger . logError ( 'AbstractFactory.js' , '_getBean() of type ' + type , err . message ) ; throw err ; } }
@name _getBean
 Get the bean by type in the closed object and return if he's exist.
@name _getBean Get the bean by type in the closed object and return if he ' s exist .