3 //=============================================================================
5 * @file ServerORBInitializer.h
7 * Implementation header for the PICurrentTest server-side ORB
10 * @author Ossama Othman <ossama@uci.edu>
12 //=============================================================================
14 #ifndef SERVER_ORB_INITIALIZER_H
15 #define SERVER_ORB_INITIALIZER_H
17 #include "ace/config-all.h"
19 #if !defined (ACE_LACKS_PRAGMA_ONCE)
21 #endif /* ACE_LACKS_PRAGMA_ONCE */
23 #include "tao/PI/PI.h"
24 #include "tao/LocalObject.h"
28 #pragma warning(disable:4250)
31 // Test's SlotId made global for ease of implementation.
32 // It is initialized to a large number to make it obvious when the
35 // Don't do this if you have more than one ORB in your application or
36 // if thread-safety is an issue!!!
37 extern PortableInterceptor::SlotId slot_id
;
40 * @class ServerORBInitializer
42 * @brief Simple concrete ORB initializer.
44 * This is a test ORB initializer that registers an IORInterceptor for
47 class ServerORBInitializer
:
48 public virtual PortableInterceptor::ORBInitializer
,
49 public virtual ::CORBA::LocalObject
54 * @name Methods Required by the ORBInitializer Interface
56 * These are methods that must be implemented since they are pure
57 * virtual in the abstract base class. They are the canonical
58 * methods required for all ORB initializers.
61 /// The pre-initialization hook.
62 virtual void pre_init (
63 PortableInterceptor::ORBInitInfo_ptr info
);
65 /// The post-initialization hook.
66 virtual void post_init (
67 PortableInterceptor::ORBInitInfo_ptr info
);
76 #endif /* SERVER_ORB_INITIALIZER_H */