| 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 |
nothing calls this directly
no test coverage detected