private static void loadExtensionBundles ( ConfigServerImpl cs , ConfigImpl config , Document doc , Log log ) { try { Element parent = getChildByName ( doc . getDocumentElement ( ) , "extensions" ) ; Element [ ] children = getChildren ( parent , "rhextension" ) ; String strBundles ; List < RHExtension > extensions = new ArrayList < RHExtension > ( ) ; RHExtension rhe ; for ( Element child : children ) { BundleInfo [ ] bfsq ; try { rhe = new RHExtension ( config , child ) ; if ( rhe . getStartBundles ( ) ) rhe . deployBundles ( config ) ; extensions . add ( rhe ) ; } catch ( Exception e ) { log . error ( "load-extension" , e ) ; continue ; } } config . setExtensions ( extensions . toArray ( new RHExtension [ extensions . size ( ) ] ) ) ; } catch ( Exception e ) { log ( config , log , e ) ; } }
loads the bundles defined in the extensions