protected BundleInstallStatus installBundles ( BootstrapConfig config ) throws InvalidBundleContextException { BundleInstallStatus installStatus = new BundleInstallStatus ( ) ; KernelResolver resolver = config . getKernelResolver ( ) ; ContentBasedLocalBundleRepository repo = BundleRepositoryRegistry . getInstallBundleRepository ( ) ; List < KernelBundleElement > bundleList = resolver . getKernelBundles ( ) ; if ( bundleList == null || bundleList . size ( ) <= 0 ) return installStatus ; boolean libertyBoot = Boolean . parseBoolean ( config . get ( BootstrapConstants . LIBERTY_BOOT_PROPERTY ) ) ; for ( final KernelBundleElement element : bundleList ) { if ( libertyBoot ) { // For boot bundles the LibertyBootRuntime must be used to install the bundles installLibertBootBundle ( element , installStatus ) ; } else { installKernelBundle ( element , installStatus , repo ) ; } } return installStatus ; }
Install framework bundles .