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
47 Server_ORBInitializer (void);
49 virtual void pre_init (PortableInterceptor::ORBInitInfo_ptr info
);
51 virtual void post_init (PortableInterceptor::ORBInitInfo_ptr info
);
53 /// Return the created server request interceptor. Only valid after
54 /// post_init(), i.e. ORB_init(), has been called.
55 PortableInterceptor::ServerRequestInterceptor_ptr
server_interceptor (void);
59 /// Pointer to the server request interceptor. ORB is responsible
61 PortableInterceptor::ServerRequestInterceptor_var server_interceptor_
;
68 #endif /* TAO_HAS_INTERCEPTORS == 1 */
70 #include /**/ "ace/post.h"
72 #endif /* TAO_SERVER_ORB_INITIALIZER_H */