src/aria/$resourcesProviders.js
function (providerConstr, args) {
    return new Promise(function (resolve) {
        var instance = new providerConstr();
        addInstanceToStore(args, instance);
        createGetData(instance, args.caller);
        if (args.hasOwnProperty("handler")) {
            instance.setHandler(args.handler);
        }
        if (args.hasOwnProperty("resources")) {
            instance.setResources(args.resources);
        }
        instance.fetchData(resolve, args.caller);
    });
}
function (providerConstr, args) {
    return new Promise(function (resolve) {
        var instance = new providerConstr();
        addInstanceToStore(args, instance);
        createGetData(instance, args.caller);
        if (args.hasOwnProperty("handler")) {
            instance.setHandler(args.handler);
        }
        if (args.hasOwnProperty("resources")) {
            instance.setResources(args.resources);
        }
        instance.fetchData(resolve, args.caller);
    });
}
function ( providerConstr , args ) { return new Promise ( function ( resolve ) { var instance = new providerConstr ( ) ; addInstanceToStore ( args , instance ) ; createGetData ( instance , args . caller ) ; if ( args . hasOwnProperty ( "handler" ) ) { instance . setHandler ( args . handler ) ; } if ( args . hasOwnProperty ( "resources" ) ) { instance . setResources ( args . resources ) ; } instance . fetchData ( resolve , args . caller ) ; } ) ; }
Create an instance of the contructor, set the handler and the resources, call the fetch method
@param {Function} providerConstr contructor of the provider
@param {Object} args see the value returned by "convertArguments" method
@return {Object} promise
Create an instance of the contructor set the handler and the resources call the fetch method