summaryrefslogtreecommitdiff
path: root/TAO/tests/TransportCurrent/lib/Server_ORBInitializer.cpp
diff options
context:
space:
mode:
authoriliyan <iliyan@ae88bc3d-4319-0410-8dbf-d08b4c9d3795>2007-01-04 21:26:15 +0000
committeriliyan <iliyan@ae88bc3d-4319-0410-8dbf-d08b4c9d3795>2007-01-04 21:26:15 +0000
commited256d599f737eb8623f085b157de51e89ed4e41 (patch)
treee7a41aeba96f3052fd9e2fe2f059e208aae8ca3a /TAO/tests/TransportCurrent/lib/Server_ORBInitializer.cpp
parentdd0a8fa92b5f7b45258136e54da5e8a7c319acf3 (diff)
downloadATCD-ed256d599f737eb8623f085b157de51e89ed4e41.tar.gz
ChangeLogTag: Thu Jan 4 20:10:38 UTC 2007 Iliyan Jeliazkov <iliyan@ociweb.com>
Diffstat (limited to 'TAO/tests/TransportCurrent/lib/Server_ORBInitializer.cpp')
-rw-r--r--TAO/tests/TransportCurrent/lib/Server_ORBInitializer.cpp42
1 files changed, 42 insertions, 0 deletions
diff --git a/TAO/tests/TransportCurrent/lib/Server_ORBInitializer.cpp b/TAO/tests/TransportCurrent/lib/Server_ORBInitializer.cpp
new file mode 100644
index 00000000000..1d7c110ac28
--- /dev/null
+++ b/TAO/tests/TransportCurrent/lib/Server_ORBInitializer.cpp
@@ -0,0 +1,42 @@
+// -*- C++ -*-
+
+#include "ace/Log_Msg.h"
+
+ACE_RCSID (Current_Test_Lib,
+ Server_ORBInitializer,
+ "$Id$")
+
+#include "Server_Request_Interceptor.h"
+#include "Server_ORBInitializer.h"
+
+namespace Test
+{
+
+ Server_ORBInitializer::Server_ORBInitializer (PortableInterceptor::ServerRequestInterceptor_ptr interceptor)
+ : interceptor_ (PortableInterceptor::ServerRequestInterceptor::_duplicate (interceptor))
+ {
+ /* no-op */
+ }
+
+ Server_ORBInitializer::~Server_ORBInitializer (void)
+ {
+ /* no-op */
+ }
+
+ void
+ Server_ORBInitializer::pre_init(PortableInterceptor::ORBInitInfo*
+ ACE_ENV_ARG_DECL_WITH_DEFAULTS)
+ ACE_THROW_SPEC ((CORBA::SystemException))
+ {
+ /* no-op */
+ }
+
+ // A specialization to handle client-side interceptors
+ void Server_ORBInitializer::post_init (PortableInterceptor::ORBInitInfo* oii
+ ACE_ENV_ARG_DECL_WITH_DEFAULTS)
+ ACE_THROW_SPEC ((CORBA::SystemException))
+ {
+ oii->add_server_request_interceptor (this->interceptor_.in ());
+ }
+
+}