| 34 | } |
| 35 | |
| 36 | ServiceHooks::TrackedType ServiceHooks::AddingService(const ServiceReferenceType& reference) |
| 37 | { |
| 38 | ServiceListenerHook* lh = GetModuleContext()->GetService(reference); |
| 39 | try |
| 40 | { |
| 41 | lh->Added(coreCtx->listeners.GetListenerInfoCollection()); |
| 42 | } |
| 43 | catch (const std::exception& e) |
| 44 | { |
| 45 | MITK_WARN << "Failed to call listener hook #" << reference.GetProperty(ServiceConstants::SERVICE_ID()).ToString() |
| 46 | << ": " << e.what(); |
| 47 | } |
| 48 | catch (...) |
| 49 | { |
| 50 | MITK_WARN << "Failed to call listener hook #" << reference.GetProperty(ServiceConstants::SERVICE_ID()).ToString() |
| 51 | << ": unknown exception type"; |
| 52 | } |
| 53 | return lh; |
| 54 | } |
| 55 | |
| 56 | void ServiceHooks::ModifiedService(const ServiceReferenceType& /*reference*/, TrackedType /*service*/) |
| 57 | { |
nothing calls this directly
no test coverage detected