lib/factories/internal.object.factory.js
function loadReactors() {
        var reactors = {};
        var reactorsDir = path.join(this.injector.rootDir, this.injector.servicesDir + '/reactors');

        if (!fs.existsSync(reactorsDir)) {
            return reactors;
        }

        var me = this;
        var reactorNames = fs.readdirSync(reactorsDir);

        _.each(reactorNames, function (reactorName) {
            reactorName = reactorName.substring(0, reactorName.length - 3);
            reactors[reactorName] = me.injector.loadModule(utils.getCamelCase(reactorName));
        });

        // add the reactors that come from plugins to the list
        _.extend(reactors, this.injector.reactors);

        return reactors;
    }
function loadReactors() {
        var reactors = {};
        var reactorsDir = path.join(this.injector.rootDir, this.injector.servicesDir + '/reactors');

        if (!fs.existsSync(reactorsDir)) {
            return reactors;
        }

        var me = this;
        var reactorNames = fs.readdirSync(reactorsDir);

        _.each(reactorNames, function (reactorName) {
            reactorName = reactorName.substring(0, reactorName.length - 3);
            reactors[reactorName] = me.injector.loadModule(utils.getCamelCase(reactorName));
        });

        // add the reactors that come from plugins to the list
        _.extend(reactors, this.injector.reactors);

        return reactors;
    }
function loadReactors ( ) { var reactors = { } ; var reactorsDir = path . join ( this . injector . rootDir , this . injector . servicesDir + '/reactors' ) ; if ( ! fs . existsSync ( reactorsDir ) ) { return reactors ; } var me = this ; var reactorNames = fs . readdirSync ( reactorsDir ) ; _ . each ( reactorNames , function ( reactorName ) { reactorName = reactorName . substring ( 0 , reactorName . length - 3 ) ; reactors [ reactorName ] = me . injector . loadModule ( utils . getCamelCase ( reactorName ) ) ; } ) ; // add the reactors that come from plugins to the list _ . extend ( reactors , this . injector . reactors ) ; return reactors ; }
Load all reactors into an object that can be injected
@returns {{}}
Load all reactors into an object that can be injected