Need to prime the implementation in factory
authorcantor <cantor@cb58f699-b61c-0410-a6fe-9272a202ed29>
Fri, 19 Mar 2004 03:00:59 +0000 (03:00 +0000)
committercantor <cantor@cb58f699-b61c-0410-a6fe-9272a202ed29>
Fri, 19 Mar 2004 03:00:59 +0000 (03:00 +0000)
git-svn-id: https://svn.middleware.georgetown.edu/cpp-sp/trunk@877 cb58f699-b61c-0410-a6fe-9272a202ed29

shib-target/XMLRequestMapper.cpp

index 1f11ca1..4700799 100644 (file)
@@ -132,7 +132,15 @@ namespace shibtarget {
 
 IPlugIn* XMLRequestMapFactory(const DOMElement* e)
 {
-    return new XMLRequestMapper(e);
+    XMLRequestMapper* m=new XMLRequestMapper(e);
+    try {
+        m->getImplementation();
+    }
+    catch (...) {
+        delete m;
+        throw;
+    }
+    return m;
 }
 
 short Override::acceptNode(const DOMNode* node) const