| 462 | } |
| 463 | |
| 464 | std::vector<Bundle> |
| 465 | BundleContext::InstallBundles(std::string const& location, cppmicroservices::AnyMap const& bundleManifest) |
| 466 | { |
| 467 | if (!d) |
| 468 | { |
| 469 | throw cppmicroservices::IllegalStateException("The bundle context is no longer valid"); |
| 470 | } |
| 471 | |
| 472 | d->CheckValid(); |
| 473 | auto b = GetAndCheckBundlePrivate(d); |
| 474 | |
| 475 | return b->coreCtx->bundleRegistry.Install(location, b.get(), bundleManifest); |
| 476 | } |
| 477 | |
| 478 | } // namespace cppmicroservices |