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

Method GetProperty

framework/src/bundle/BundleContext.cpp:94–107  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

92 }
93
94 Any
95 BundleContext::GetProperty(std::string const& key) const
96 {
97 if (!d)
98 {
99 throw cppmicroservices::IllegalStateException("The bundle context is no longer valid");
100 }
101
102 d->CheckValid();
103 auto b = GetAndCheckBundlePrivate(d);
104
105 auto iter = b->coreCtx->frameworkProperties.find(key);
106 return iter == b->coreCtx->frameworkProperties.end() ? Any() : iter->second;
107 }
108
109 AnyMap
110 BundleContext::GetProperties() const

Callers

nothing calls this directly

Calls 5

GetAndCheckBundlePrivateFunction · 0.85
CheckValidMethod · 0.80
AnyClass · 0.50
findMethod · 0.45
endMethod · 0.45

Tested by

no test coverage detected