Merge pull request #2303 from jwillemsen/jwi-803
[ACE_TAO.git] / TAO / orbsvcs / examples / ORT / Server_IORInterceptor.cpp
blobb4c593691545d8279c7dd97c2e2df49e9154d759
1 #include "Server_IORInterceptor.h"
2 #include "Gateway_ObjRef_Factory.h"
4 Server_IORInterceptor::
5 Server_IORInterceptor (Gateway::Object_Factory_ptr factory)
6 : gateway_object_factory_ (Gateway::Object_Factory::_duplicate (factory))
10 Server_IORInterceptor::~Server_IORInterceptor ()
12 CORBA::release (this->gateway_object_factory_);
16 char *
17 Server_IORInterceptor::name ()
19 return CORBA::string_dup ("Server_IORInterceptor");
22 void
23 Server_IORInterceptor::destroy ()
25 CORBA::release (this->gateway_object_factory_);
26 this->gateway_object_factory_ = Gateway::Object_Factory::_nil ();
29 void
30 Server_IORInterceptor::establish_components (
31 PortableInterceptor::IORInfo_ptr)
35 void
36 Server_IORInterceptor::components_established (
37 PortableInterceptor::IORInfo_ptr ior_info)
39 Gateway_ObjRef_Factory *my_factory = 0;
41 PortableInterceptor::ObjectReferenceFactory_var current_factory =
42 ior_info->current_factory ();
44 ACE_NEW_THROW_EX (my_factory,
45 Gateway_ObjRef_Factory (this->gateway_object_factory_,
46 current_factory.in ()),
47 CORBA::NO_MEMORY ());
49 ior_info->current_factory (my_factory);
52 void
53 Server_IORInterceptor::adapter_manager_state_changed (
54 const char *,
55 PortableInterceptor::AdapterState)
59 void
60 Server_IORInterceptor:: adapter_state_changed (
61 const PortableInterceptor::ObjectReferenceTemplateSeq &,
62 PortableInterceptor::AdapterState)