blob: 5809da7409e51a6147a36a57ca44ab98f9372048 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
|
// $Id$
#include "Server_IORInterceptor.h"
#include "Gateway_ObjRef_Factory.h"
ACE_RCSID (ORT,
Server_IORInterceptor,
"$Id$")
Server_IORInterceptor::
Server_IORInterceptor (Gateway::Object_Factory_ptr factory)
: gateway_object_factory_ (Gateway::Object_Factory::_duplicate (factory))
{
}
Server_IORInterceptor::~Server_IORInterceptor (void)
{
CORBA::release (this->gateway_object_factory_);
}
char *
Server_IORInterceptor::name (void)
{
return CORBA::string_dup ("Server_IORInterceptor");
}
void
Server_IORInterceptor::destroy (void)
{
CORBA::release (this->gateway_object_factory_);
this->gateway_object_factory_ = Gateway::Object_Factory::_nil ();
}
void
Server_IORInterceptor::establish_components (
PortableInterceptor::IORInfo_ptr)
{
}
void
Server_IORInterceptor::components_established (
PortableInterceptor::IORInfo_ptr ior_info)
{
Gateway_ObjRef_Factory *my_factory = 0;
PortableInterceptor::ObjectReferenceFactory_var current_factory =
ior_info->current_factory ();
ACE_NEW_THROW_EX (my_factory,
Gateway_ObjRef_Factory (this->gateway_object_factory_,
current_factory.in ()),
CORBA::NO_MEMORY ());
ior_info->current_factory (my_factory);
}
void
Server_IORInterceptor::adapter_manager_state_changed (
const char *,
PortableInterceptor::AdapterState)
{
}
void
Server_IORInterceptor:: adapter_state_changed (
const PortableInterceptor::ObjectReferenceTemplateSeq &,
PortableInterceptor::AdapterState)
{
}
|