summaryrefslogtreecommitdiff
path: root/TAO/tests/Smart_Proxies/On_Demand/Smart_Test_Factory.cpp
blob: f5894d0e5c2a4c5f96477a622b74ef2ec7916d16 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
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,
                                  CORBA::Environment &)
 {
   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)