Credential resolver plugin
[shibboleth/cpp-xmltooling.git] / xmltooling / PluginManager.h
index e1add0e..67323c8 100644 (file)
@@ -69,9 +69,15 @@ namespace xmltooling {
          * @param type  the name of the plugin type\r
          */\r
         void deregisterFactory(const char* type) {\r
-            if (type) {\r
+            if (type)\r
                 m_map.erase(type);\r
-            }\r
+        }\r
+\r
+        /**\r
+         * Unregisters all registered factories.\r
+         */\r
+        void deregisterFactories() {\r
+            m_map.clear();\r
         }\r
 \r
         /**\r