summaryrefslogtreecommitdiff
path: root/TAO/tao/PortableServer/Servant_Base.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'TAO/tao/PortableServer/Servant_Base.cpp')
-rw-r--r--TAO/tao/PortableServer/Servant_Base.cpp22
1 files changed, 22 insertions, 0 deletions
diff --git a/TAO/tao/PortableServer/Servant_Base.cpp b/TAO/tao/PortableServer/Servant_Base.cpp
index 817f6a7623d..1f6bd4fd0ed 100644
--- a/TAO/tao/PortableServer/Servant_Base.cpp
+++ b/TAO/tao/PortableServer/Servant_Base.cpp
@@ -11,6 +11,9 @@
#include "tao/Stub.h"
#include "tao/Environment.h"
#include "tao/TAO_Server_Request.h"
+#include "tao/IFR_Client_Adapter.h"
+
+#include "ace/Dynamic_Service.h"
ACE_RCSID(tao, Servant_Base, "$Id$")
@@ -92,6 +95,25 @@ TAO_ServantBase::_non_existent (CORBA::Environment &)
return 0;
}
+CORBA_InterfaceDef_ptr
+TAO_ServantBase::_get_interface (CORBA::Environment &ACE_TRY_ENV)
+{
+ TAO_IFR_Client_Adapter *adapter =
+ ACE_Dynamic_Service<TAO_IFR_Client_Adapter>::instance (
+ TAO_ORB_Core::ifr_client_adapter_name ()
+ );
+
+ if (adapter == 0)
+ {
+ ACE_THROW_RETURN (CORBA::INTF_REPOS (),
+ 0);
+ }
+
+ return adapter->get_interface (TAO_ORB_Core_instance ()->orb (),
+ this->_interface_repository_id (),
+ ACE_TRY_ENV);
+}
+
int
TAO_ServantBase::_find (const char *opname,
TAO_Skeleton& skelfunc,