3 //=============================================================================
5 * @file Server_ORBInitializer.h
7 * Implementation header for the PortableInterceptor::ForwardRequest
8 * exception test server side ORB initializer.
10 * @author Ossama Othman <ossama@uci.edu>
12 //=============================================================================
14 #ifndef TAO_SERVER_ORB_INITIALIZER_H
15 #define TAO_SERVER_ORB_INITIALIZER_H
17 #include /**/ "ace/pre.h"
19 #include "tao/LocalObject.h"
21 #if !defined (ACE_LACKS_PRAGMA_ONCE)
23 #endif /* ACE_LACKS_PRAGMA_ONCE */
25 #if TAO_HAS_INTERCEPTORS == 1
27 #include "tao/PI/PI.h"
29 // This is to remove "inherits via dominance" warnings from MSVC.
30 // MSVC is being a little too paranoid.
33 #pragma warning(disable:4250)
36 // Forward declaration.
37 class Server_Request_Interceptor
;
39 /// Server side ORB initializer.
40 class Server_ORBInitializer
:
41 public virtual PortableInterceptor::ORBInitializer
,
42 public virtual ::CORBA::LocalObject
46 Server_ORBInitializer ();
48 virtual void pre_init (PortableInterceptor::ORBInitInfo_ptr info
);
50 virtual void post_init (PortableInterceptor::ORBInitInfo_ptr info
);
52 /// Return the created server request interceptor. Only valid after
53 /// post_init(), i.e. ORB_init(), has been called.
54 PortableInterceptor::ServerRequestInterceptor_ptr
server_interceptor ();
57 /// Pointer to the server request interceptor. ORB is responsible
59 PortableInterceptor::ServerRequestInterceptor_var server_interceptor_
;
66 #endif /* TAO_HAS_INTERCEPTORS == 1 */
68 #include /**/ "ace/post.h"
70 #endif /* TAO_SERVER_ORB_INITIALIZER_H */