2 #include "Server_ORBInitializer.h"
3 #include "Interceptor_Type.h"
4 #include "server_interceptors.h"
6 Server_ORBInitializer::Server_ORBInitializer (int interceptor_type
)
7 : interceptor_type_ (interceptor_type
)
12 Server_ORBInitializer::pre_init (
13 PortableInterceptor::ORBInitInfo_ptr
)
18 Server_ORBInitializer::post_init (
19 PortableInterceptor::ORBInitInfo_ptr info
)
21 PortableInterceptor::ServerRequestInterceptor_ptr tmp
=
22 PortableInterceptor::ServerRequestInterceptor::_nil ();
24 switch (this->interceptor_type_
)
32 // Installing the Vault interceptor
33 ACE_NEW_THROW_EX (tmp
,
34 Vault_Server_Request_NOOP_Interceptor (),
40 // Installing the Vault interceptor
41 ACE_NEW_THROW_EX (tmp
,
42 Vault_Server_Request_Context_Interceptor (),
48 // Installing the Vault interceptor
49 ACE_NEW_THROW_EX (tmp
,
50 Vault_Server_Request_Dynamic_Interceptor (),
56 PortableInterceptor::ServerRequestInterceptor_var interceptor
= tmp
;
58 info
->add_server_request_interceptor (interceptor
.in ());