Merge pull request #1844 from jrw972/monterey
[ACE_TAO.git] / TAO / tests / Smart_Proxies / Policy / Smart_Proxy_Impl.cpp
blob4eb3378faa48eb93b29398cd63cc81785e888378
1 #include "Smart_Proxy_Impl.h"
3 Smart_Test_Factory::Smart_Test_Factory (int one_shot_factory)
4 : TAO_Test_Default_Proxy_Factory (one_shot_factory)
6 ACE_DEBUG ((LM_DEBUG,
7 "Smart_Test_Factory\n"));
10 Test_ptr
11 Smart_Test_Factory::create_proxy (Test_ptr proxy)
13 ACE_DEBUG ((LM_DEBUG,
14 "create_smart_proxy\n"));
16 if (CORBA::is_nil (proxy))
17 ACE_NEW_RETURN (proxy, Smart_Test_Proxy (proxy), 0);
19 return proxy;
23 Smart_Test_Proxy::Smart_Test_Proxy (Test_ptr proxy)
24 : TAO_Smart_Proxy_Base (proxy)
28 CORBA::Short
29 Smart_Test_Proxy::method (CORBA::Short boo)
31 ACE_DEBUG ((LM_DEBUG,
32 "Yahoo, I am smart\n"));
34 CORBA::Short retval = 0;
35 try
37 retval = TAO_Test_Smart_Proxy_Base::method (boo);
39 catch (const Test::Oops& reason)
41 reason._tao_print_exception ("User Exception");
42 return -1;
45 return retval;