| 61 | }; |
| 62 | |
| 63 | Framework |
| 64 | FrameworkFactory::NewFramework(FrameworkConfiguration const& configuration, std::ostream* logger) |
| 65 | { |
| 66 | std::unique_ptr<CoreBundleContext> ctx(new CoreBundleContext(configuration, logger)); |
| 67 | auto fwCtx = ctx.get(); |
| 68 | std::shared_ptr<CoreBundleContext> holder(std::make_shared<CoreBundleContextHolder>(std::move(ctx)), fwCtx); |
| 69 | holder->SetThis(holder); |
| 70 | return Framework(holder->systemBundle); |
| 71 | } |
| 72 | |
| 73 | Framework |
| 74 | FrameworkFactory::NewFramework() |