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

Method GetBundles

framework/src/bundle/BundleContext.cpp:156–173  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

154 }
155
156 std::vector<Bundle>
157 BundleContext::GetBundles(std::string const& location) const
158 {
159 if (!d)
160 {
161 throw cppmicroservices::IllegalStateException("The bundle context is no longer valid");
162 }
163
164 d->CheckValid();
165 auto b = GetAndCheckBundlePrivate(d);
166
167 std::vector<Bundle> res;
168 for (auto bu : b->coreCtx->bundleRegistry.GetBundles(location))
169 {
170 res.emplace_back(MakeBundle(bu));
171 }
172 return res;
173 }
174
175 std::vector<Bundle>
176 BundleContext::GetBundles() const

Callers 15

StopMethod · 0.45
StartMethod · 0.45
TEST_FFunction · 0.45
frame040cFunction · 0.45
TEST_FFunction · 0.45
TESTFunction · 0.45
TestSerialBundleInstallFunction · 0.45
TESTFunction · 0.45
TEST_FFunction · 0.45
SetUpMethod · 0.45
TEST_FFunction · 0.45
TEST_FFunction · 0.45

Calls 4

GetAndCheckBundlePrivateFunction · 0.85
MakeBundleFunction · 0.85
CheckValidMethod · 0.80
FilterBundlesMethod · 0.80

Tested by 15

StopMethod · 0.36
StartMethod · 0.36
TEST_FFunction · 0.36
frame040cFunction · 0.36
TEST_FFunction · 0.36
TESTFunction · 0.36
TestSerialBundleInstallFunction · 0.36
TESTFunction · 0.36
TEST_FFunction · 0.36
SetUpMethod · 0.36
TEST_FFunction · 0.36
TEST_FFunction · 0.36