summaryrefslogtreecommitdiff
path: root/trunk/TAO/tests/Smart_Proxies/On_Demand/Smart_Test_Factory.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'trunk/TAO/tests/Smart_Proxies/On_Demand/Smart_Test_Factory.cpp')
-rw-r--r--trunk/TAO/tests/Smart_Proxies/On_Demand/Smart_Test_Factory.cpp27
1 files changed, 27 insertions, 0 deletions
diff --git a/trunk/TAO/tests/Smart_Proxies/On_Demand/Smart_Test_Factory.cpp b/trunk/TAO/tests/Smart_Proxies/On_Demand/Smart_Test_Factory.cpp
new file mode 100644
index 00000000000..1d8380fc600
--- /dev/null
+++ b/trunk/TAO/tests/Smart_Proxies/On_Demand/Smart_Test_Factory.cpp
@@ -0,0 +1,27 @@
+//$Id$
+#define ACE_BUILD_SVC_DLL
+#include "Smart_Test_Factory.h"
+
+Smart_Test_Factory::Smart_Test_Factory (void)
+{
+ ACE_DEBUG ((LM_DEBUG,
+ "Smart_Test_Factory\n"));
+}
+
+Test_ptr
+Smart_Test_Factory::create_proxy (Test_ptr proxy
+ ACE_ENV_ARG_DECL_NOT_USED)
+ {
+ ACE_DEBUG ((LM_DEBUG,
+ "create_smart_proxy\n"));
+
+ if (CORBA::is_nil (proxy) == 0)
+ ACE_NEW_RETURN (proxy, Smart_Test_Proxy (proxy), 0);
+
+ return proxy;
+
+ }
+
+// The following Factory is used by the <ACE_Service_Config> to
+// dynamically initialize the state of the Smart_Proxy_Factory
+ACE_SVC_FACTORY_DEFINE (Smart_Test_Factory)