30 if (persistenceServiceRef)
36 bool instanceAlreadyAdded = persistenceService != 0;
37 if (instanceAlreadyAdded)
40 if (instanceAlreadyAdded ==
false)
45 _PersistenceServiceProps[
"Name"] = std::string(
"PersistenceService");
47 m_PersistenceServiceRegistration =
53 <<
"Another Persistence instance already installed. Library was loaded twice. Please check configuration!";
59 if (m_PersistenceService.IsNull())
62 MITK_DEBUG(
"PersistenceActivator") <<
"PersistenceActivator::Unload";
63 MITK_DEBUG(
"PersistenceActivator") <<
"m_PersistenceService GetReferenceCount "
64 << m_PersistenceService->GetReferenceCount();
66 m_PersistenceServiceRegistration.Unregister();
67 m_PersistenceService->Unitialize();
68 m_PersistenceService->Delete();
virtual ~PersistenceActivator()
void Load(us::ModuleContext *context) override
US_UNORDERED_MAP_TYPE< std::string, Any > ServiceProperties
void Unload(us::ModuleContext *context) override