lib/factories/internal.object.factory.js
function create(objectName) {

        // for resources we need to load them the first time they are referenced
        if (objectName === 'resources' && this.internalObjects[objectName] === true) {
            this.internalObjects[objectName] = this.loadResources();
        }

        // for reactors we need to load them the first time they are referenced
        else if (objectName === 'reactors' && this.internalObjects[objectName] === true) {
            this.internalObjects[objectName] = this.loadReactors();
        }

        // for reactors we need to load them the first time they are referenced
        else if (objectName === 'appConfigs' && this.internalObjects[objectName] === true) {
            this.internalObjects[objectName] = this.loadAppConfigs();
        }

        // for adapters we need to load them the first time they are referenced
        else if (objectName === 'adapters' && this.internalObjects[objectName] === true) {
            this.internalObjects[objectName] = this.loadAdapters();
        }

        return this.internalObjects[objectName];
    }
function create(objectName) {

        // for resources we need to load them the first time they are referenced
        if (objectName === 'resources' && this.internalObjects[objectName] === true) {
            this.internalObjects[objectName] = this.loadResources();
        }

        // for reactors we need to load them the first time they are referenced
        else if (objectName === 'reactors' && this.internalObjects[objectName] === true) {
            this.internalObjects[objectName] = this.loadReactors();
        }

        // for reactors we need to load them the first time they are referenced
        else if (objectName === 'appConfigs' && this.internalObjects[objectName] === true) {
            this.internalObjects[objectName] = this.loadAppConfigs();
        }

        // for adapters we need to load them the first time they are referenced
        else if (objectName === 'adapters' && this.internalObjects[objectName] === true) {
            this.internalObjects[objectName] = this.loadAdapters();
        }

        return this.internalObjects[objectName];
    }
function create ( objectName ) { // for resources we need to load them the first time they are referenced if ( objectName === 'resources' && this . internalObjects [ objectName ] === true ) { this . internalObjects [ objectName ] = this . loadResources ( ) ; } // for reactors we need to load them the first time they are referenced else if ( objectName === 'reactors' && this . internalObjects [ objectName ] === true ) { this . internalObjects [ objectName ] = this . loadReactors ( ) ; } // for reactors we need to load them the first time they are referenced else if ( objectName === 'appConfigs' && this . internalObjects [ objectName ] === true ) { this . internalObjects [ objectName ] = this . loadAppConfigs ( ) ; } // for adapters we need to load them the first time they are referenced else if ( objectName === 'adapters' && this . internalObjects [ objectName ] === true ) { this . internalObjects [ objectName ] = this . loadAdapters ( ) ; } return this . internalObjects [ objectName ] ; }
Very simply use require to get the object
@param objectName
@returns {{}}
Very simply use require to get the object