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

Method RegisterService

framework/src/bundle/BundleContext.cpp:199–211  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

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)

Calls 3

GetAndCheckBundlePrivateFunction · 0.85
CheckValidMethod · 0.80
getMethod · 0.80