public static AbstractConfiguration [ ] execute ( String applicationNamespace , ClassLoader loader , Logger log ) throws Exception { String packageName = "de.jiac.micro.internal.latebind" ; MicroJIACToolContext context = new MicroJIACToolContext ( loader ) ; ConfigurationGenerator generator = new ConfigurationGenerator ( context . getLoader ( ) , log ) ; MergedConfiguration conf = context . createResolver ( ) . resolveAndMerge ( applicationNamespace ) ; CheckerResult checkerResult = context . createChecker ( ) . flattenAndCheck ( conf ) ; // first print the warnings for ( String warning : checkerResult . warnings ) { log . warn ( warning ) ; } // print errors for ( String error : checkerResult . errors ) { log . error ( error ) ; } if ( checkerResult . hasErrors ( ) ) { throw new GeneratorException ( "checker has found errors" ) ; } return generator . generate ( packageName , conf ) ; }
Return the array of generated node configurations .