lib/factories/adapter.factory.js
function AdapterFactory(injector) {
    if (!injector.adapters) { return; }
    var me = this;

    this.adapterMap = {};
    _.each(injector.adapterMap, function (adapterName, adapterType) {
        var adapter = injector.adapters[adapterName];
        if (adapter) {
            me.adapterMap[adapterType + 'adapter'] = adapter;
        }
    });
}
function AdapterFactory(injector) {
    if (!injector.adapters) { return; }
    var me = this;

    this.adapterMap = {};
    _.each(injector.adapterMap, function (adapterName, adapterType) {
        var adapter = injector.adapters[adapterName];
        if (adapter) {
            me.adapterMap[adapterType + 'adapter'] = adapter;
        }
    });
}
function AdapterFactory ( injector ) { if ( ! injector . adapters ) { return ; } var me = this ; this . adapterMap = { } ; _ . each ( injector . adapterMap , function ( adapterName , adapterType ) { var adapter = injector . adapters [ adapterName ] ; if ( adapter ) { me . adapterMap [ adapterType + 'adapter' ] = adapter ; } } ) ; }
Initialize the cache
@param injector
@constructor
Initialize the cache