Merge pull request #1844 from jrw972/monterey
[ACE_TAO.git] / TAO / tests / Portable_Interceptors / PolicyFactory / Server_ORBInitializer.h
blob6abfc989558714c2bf6981576f0aa26f57f7c656
1 // -*- C++ -*-
3 //=============================================================================
4 /**
5 * @file Server_ORBInitializer.h
7 * Implementation header for the IOR test interceptor ORB
8 * initializer.
10 * @author Ossama Othman <ossama@dre.vanderbilt.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)
20 # pragma once
21 #endif /* ACE_LACKS_PRAGMA_ONCE */
23 #include "tao/PI/PI.h"
24 #include "tao/LocalObject.h"
26 #if defined(_MSC_VER)
27 #pragma warning(push)
28 #pragma warning(disable:4250)
29 #endif /* _MSC_VER */
31 /**
32 * @class Server_ORBInitializer
34 * @brief Simple concrete ORB initializer.
36 * This is a test ORB initializer that registers a PolicyFactory and
37 * IORInterceptor for this test.
39 class Server_ORBInitializer
40 : public virtual PortableInterceptor::ORBInitializer,
41 public virtual ::CORBA::LocalObject
43 public:
45 /**
46 * @name Methods Required by the ORBInitializer Interface
48 * These are methods that must be implemented since they are pure
49 * virtual in the abstract base class. They are the canonical
50 * methods required for all ORB initializers.
52 //@{
53 /// The pre-initialization hook.
54 virtual void pre_init (
55 PortableInterceptor::ORBInitInfo_ptr info);
57 /// The post-initialization hook.
58 virtual void post_init (
59 PortableInterceptor::ORBInitInfo_ptr info);
60 //@}
64 #if defined(_MSC_VER)
65 #pragma warning(pop)
66 #endif /* _MSC_VER */
68 #endif /* SERVER_ORB_INITIALIZER_H */