public void start ( ) { // Construct the URLClassLoader which will be used to load // classes within the modules. URL [ ] urls = new URL [ modules . size ( ) ] ; for ( int i = 0 ; i != modules . size ( ) ; ++ i ) { urls [ i ] = modules . get ( i ) . getLocation ( ) ; } URLClassLoader loader = new URLClassLoader ( urls ) ; // Third, active the modules. This will give them the opportunity to // register whatever extensions they like. activateModules ( loader ) ; }
Scan and activate all modules on the search path . As part of this all module dependencies will be checked .