src/aria/$resourcesProviders.js
function (referencePath, baseLogicalPath, callerClasspath, onLoad, handler) {
    var args = convertArguments(arguments);
    if (args.onLoad) {
        asyncRequire(args.provider).spreadSync(function (providerConstr) {
            return fetchDataAfterLoading(providerConstr, args);
        }).then(function () {
            var callerPrototype = Aria.getClassRef(args.caller).prototype;
            callerPrototype[args.onLoad].call(callerPrototype);
        }).done();
    }
    return {
        provider : getInstanceFromStore(args)
    };
}
function (referencePath, baseLogicalPath, callerClasspath, onLoad, handler) {
    var args = convertArguments(arguments);
    if (args.onLoad) {
        asyncRequire(args.provider).spreadSync(function (providerConstr) {
            return fetchDataAfterLoading(providerConstr, args);
        }).then(function () {
            var callerPrototype = Aria.getClassRef(args.caller).prototype;
            callerPrototype[args.onLoad].call(callerPrototype);
        }).done();
    }
    return {
        provider : getInstanceFromStore(args)
    };
}
function ( referencePath , baseLogicalPath , callerClasspath , onLoad , handler ) { var args = convertArguments ( arguments ) ; if ( args . onLoad ) { asyncRequire ( args . provider ) . spreadSync ( function ( providerConstr ) { return fetchDataAfterLoading ( providerConstr , args ) ; } ) . then ( function ( ) { var callerPrototype = Aria . getClassRef ( args . caller ) . prototype ; callerPrototype [ args . onLoad ] . call ( callerPrototype ) ; } ) . done ( ) ; } return { provider : getInstanceFromStore ( args ) } ; }
Public method that has to be used to obtain the instance of provider
@param {String} referencePath reference path of the provider module
@param {String} baseLogicalPath path of the provider module
@param {String} callerClasspath classpath of the caller,
@param {String} onLoad onLoad method of the caller prototype to call after the resources are fetched
@param {String} handler handler
@param {...*} var_args flattened list of resources
@return {Object} It contains a property "provider" whose value is the instance of the provider
@public
Public method that has to be used to obtain the instance of provider