Starting to refactor session cache, eliminated IConfig class.
[shibboleth/cpp-sp.git] / shib-target / shib-config.cpp
index e0d23ad..064c61a 100644 (file)
@@ -49,8 +49,8 @@ PlugManager::Factory UnixListenerFactory;
 #endif
 PlugManager::Factory TCPListenerFactory;
 //PlugManager::Factory MemoryListenerFactory;
-PlugManager::Factory MemoryCacheFactory;
 
+PluginManager<SessionCache,const DOMElement*>::Factory MemoryCacheFactory;
 PluginManager<Handler,const DOMElement*>::Factory ShibSessionInitiatorFactory;
 PluginManager<Handler,const DOMElement*>::Factory SAML1POSTFactory;
 PluginManager<Handler,const DOMElement*>::Factory SAML1ArtifactFactory;
@@ -106,7 +106,7 @@ bool STConfig::init(const char* schemadir)
     conf.AssertionConsumerServiceManager.registerFactory(samlconstants::SAML1_PROFILE_BROWSER_ARTIFACT,&SAML1ArtifactFactory);
     conf.SingleLogoutServiceManager.registerFactory(shibspconstants::SHIB1_LOGOUT_PROFILE_URI,&ShibLogoutFactory);
     
-    samlConf.getPlugMgr().regFactory(MEMORY_SESSIONCACHE,&MemoryCacheFactory);
+    conf.SessionCacheManager.registerFactory(MEMORY_SESSIONCACHE,&MemoryCacheFactory);
     
     log.info("finished initializing");
     return true;