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 (void)
12 CORBA::release (this->gateway_object_factory_
);
17 Server_IORInterceptor::name (void)
19 return CORBA::string_dup ("Server_IORInterceptor");
23 Server_IORInterceptor::destroy (void)
25 CORBA::release (this->gateway_object_factory_
);
26 this->gateway_object_factory_
= Gateway::Object_Factory::_nil ();
30 Server_IORInterceptor::establish_components (
31 PortableInterceptor::IORInfo_ptr
)
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 ()),
49 ior_info
->current_factory (my_factory
);
53 Server_IORInterceptor::adapter_manager_state_changed (
55 PortableInterceptor::AdapterState
)
60 Server_IORInterceptor:: adapter_state_changed (
61 const PortableInterceptor::ObjectReferenceTemplateSeq
&,
62 PortableInterceptor::AdapterState
)