MCPcopy Create free account
hub / github.com/CppMicroServices/CppMicroServices / NewFramework

Method NewFramework

framework/src/util/FrameworkFactory.cpp:63–71  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

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()

Callers 15

ServiceReferenceTestMethod · 0.80
ServiceListenerTestMethod · 0.80
BundleTestMethod · 0.80
TEST_FFunction · 0.80
TESTFunction · 0.80
TESTFunction · 0.80
ServiceRegistryTestMethod · 0.80
BundleGetSymbolTestMethod · 0.80
TESTFunction · 0.80

Calls 4

getMethod · 0.80
SetThisMethod · 0.80
FrameworkClass · 0.50
insertMethod · 0.45

Tested by 15

ServiceReferenceTestMethod · 0.64
ServiceListenerTestMethod · 0.64
BundleTestMethod · 0.64
TEST_FFunction · 0.64
TESTFunction · 0.64
TESTFunction · 0.64
ServiceRegistryTestMethod · 0.64
BundleGetSymbolTestMethod · 0.64
TESTFunction · 0.64