src/aria/core/JsonValidator.js
function (def) {
                var bp = def.$package; // beans package
                Aria.$classes.push({
                    $classpath : bp
                });
                this.__waitingBeans[bp] = def;
                var dep = [];

                // load missing dependencies

                // add $dependencies
                var dependencies = def.$dependencies || [];
                if (dependencies.length) {
                    dep = dep.concat(dependencies);
                }

                // add bean definition from namespaces
                for (var key in def.$namespaces) {
                    if (def.$namespaces.hasOwnProperty(key)) {
                        dep.push(def.$namespaces[key]);
                    }
                }

                return Aria.loadOldDependencies({
                    classpaths : {
                        "JS" : dep
                    },
                    classDefinition : def,
                    complete : {
                        scope : this,
                        fn : this.__loadBeans,
                        args : [bp]
                    }
                });
            }
function (def) {
                var bp = def.$package; // beans package
                Aria.$classes.push({
                    $classpath : bp
                });
                this.__waitingBeans[bp] = def;
                var dep = [];

                // load missing dependencies

                // add $dependencies
                var dependencies = def.$dependencies || [];
                if (dependencies.length) {
                    dep = dep.concat(dependencies);
                }

                // add bean definition from namespaces
                for (var key in def.$namespaces) {
                    if (def.$namespaces.hasOwnProperty(key)) {
                        dep.push(def.$namespaces[key]);
                    }
                }

                return Aria.loadOldDependencies({
                    classpaths : {
                        "JS" : dep
                    },
                    classDefinition : def,
                    complete : {
                        scope : this,
                        fn : this.__loadBeans,
                        args : [bp]
                    }
                });
            }
function ( def ) { var bp = def . $package ; // beans package Aria . $classes . push ( { $classpath : bp } ) ; this . __waitingBeans [ bp ] = def ; var dep = [ ] ; // load missing dependencies // add $dependencies var dependencies = def . $dependencies || [ ] ; if ( dependencies . length ) { dep = dep . concat ( dependencies ) ; } // add bean definition from namespaces for ( var key in def . $namespaces ) { if ( def . $namespaces . hasOwnProperty ( key ) ) { dep . push ( def . $namespaces [ key ] ) ; } } return Aria . loadOldDependencies ( { classpaths : { "JS" : dep } , classDefinition : def , complete : { scope : this , fn : this . __loadBeans , args : [ bp ] } } ) ; }
PUBLIC API 
Base method used to declare beans. You should use Aria. beanDefinitions instead of this method.
@param {aria.core.BaseTypes:Package} beans beans package to declare
PUBLIC API Base method used to declare beans . You should use Aria . beanDefinitions instead of this method .