diff options
author | nanbor <nanbor@ae88bc3d-4319-0410-8dbf-d08b4c9d3795> | 2001-08-23 21:06:52 +0000 |
---|---|---|
committer | nanbor <nanbor@ae88bc3d-4319-0410-8dbf-d08b4c9d3795> | 2001-08-23 21:06:52 +0000 |
commit | 6043430680b8e81a9b9060586669e5fae32b916c (patch) | |
tree | f8772d7dc48ec6c5adc069b9ac2fa68e8c5f60ae /TAO/tao/PortableServer/Direct_Object_Proxy_Impl.cpp | |
parent | 7302950169ebee6157fb4f74747b63433f9be622 (diff) | |
download | ATCD-CCM-Core.tar.gz |
ChangeLogTag:Thu Aug 23 15:54:44 2001 Nanbor Wang <nanbor@cs.wustl.edu>CCM-Core
Diffstat (limited to 'TAO/tao/PortableServer/Direct_Object_Proxy_Impl.cpp')
-rw-r--r-- | TAO/tao/PortableServer/Direct_Object_Proxy_Impl.cpp | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/TAO/tao/PortableServer/Direct_Object_Proxy_Impl.cpp b/TAO/tao/PortableServer/Direct_Object_Proxy_Impl.cpp index 1d0abbacf2a..fa818da27e6 100644 --- a/TAO/tao/PortableServer/Direct_Object_Proxy_Impl.cpp +++ b/TAO/tao/PortableServer/Direct_Object_Proxy_Impl.cpp @@ -80,4 +80,28 @@ TAO_Direct_Object_Proxy_Impl::_get_interface (const CORBA::Object_ptr target, return 0; } +CORBA_Object_ptr +TAO_Direct_Object_Proxy_Impl::_get_component (const CORBA::Object_ptr target, + CORBA_Environment &ACE_TRY_ENV) +{ + ACE_TRY + { + if (target->_servant () != 0) + return target->_servant ()->_get_component (ACE_TRY_ENV); + + // @@ Maybe we want to change this exception... + ACE_THROW_RETURN (CORBA::INV_OBJREF (), 0); + } + ACE_CATCH (CORBA::OBJECT_NOT_EXIST, ex) + { + } + ACE_CATCHANY + { + ACE_RE_THROW; + } + ACE_ENDTRY; + + return 0; +} + #endif /* TAO_HAS_MINIMUM_CORBA == 0 */ |