| 197 | } |
| 198 | |
| 199 | ServiceRegistrationU |
| 200 | BundleContext::RegisterService(InterfaceMapConstPtr const& service, ServiceProperties const& properties) |
| 201 | { |
| 202 | if (!d) |
| 203 | { |
| 204 | throw cppmicroservices::IllegalStateException("The bundle context is no longer valid"); |
| 205 | } |
| 206 | |
| 207 | d->CheckValid(); |
| 208 | auto b = GetAndCheckBundlePrivate(d); |
| 209 | |
| 210 | return b->coreCtx->services.RegisterService(b.get(), service, properties); |
| 211 | } |
| 212 | |
| 213 | std::vector<ServiceReferenceU> |
| 214 | BundleContext::GetServiceReferences(std::string const& clazz, std::string const& filter) |