PI_ORBInitializer.h

Go to the documentation of this file.
00001 // -*- C++ -*-
00002 
00003 //=============================================================================
00004 /**
00005  *  @file PI_ORBInitializer.h
00006  *
00007  *  $Id: PI_ORBInitializer.h 77151 2007-02-15 13:24:41Z johnnyw $
00008  *
00009  *  @author Tim Bradley <bradley_t@ociweb.com>
00010  */
00011 //=============================================================================
00012 
00013 #ifndef TAO_PI_ORB_INITIALIZER_H
00014 #define TAO_PI_ORB_INITIALIZER_H
00015 
00016 #include /**/ "ace/pre.h"
00017 
00018 #include "tao/orbconf.h"
00019 
00020 #if TAO_HAS_INTERCEPTORS == 1
00021 
00022 #include "tao/PI/pi_export.h"
00023 
00024 #if !defined (ACE_LACKS_PRAGMA_ONCE)
00025 # pragma once
00026 #endif /* ACE_LACKS_PRAGMA_ONCE */
00027 
00028 #include "tao/LocalObject.h"
00029 #include "tao/PI/ORBInitializerC.h"
00030 #include "tao/PI/PolicyFactoryC.h"
00031 
00032 TAO_BEGIN_VERSIONED_NAMESPACE_DECL
00033 
00034 /// Forward Declarations
00035 class TAO_PI_PolicyFactory;
00036 
00037 /// PortableServer ORB initializer.
00038 class TAO_PI_Export TAO_PI_ORBInitializer
00039   : public virtual PortableInterceptor::ORBInitializer,
00040     public virtual TAO_Local_RefCounted_Object
00041 {
00042 public:
00043 
00044   /**
00045    * @name PortableInterceptor::ORBInitializer methods
00046    *
00047    * The following methods are required by the
00048    * PortableInterceptor::ORBInitializer interface.
00049    */
00050   //@{
00051   void pre_init (PortableInterceptor::ORBInitInfo_ptr info);
00052 
00053   void post_init (PortableInterceptor::ORBInitInfo_ptr info);
00054 
00055   //@}
00056 
00057 private:
00058 
00059   /// Register PortableInterceptor policy factories.
00060   void register_policy_factories (PortableInterceptor::ORBInitInfo_ptr info);
00061 
00062   /// Instance of the PI policy factory.
00063   /**
00064    * The PI policy factory is stateless and reentrant, so share
00065    * a single instance between all ORBs.
00066    */
00067   PortableInterceptor::PolicyFactory_var policy_factory_;
00068 };
00069 
00070 TAO_END_VERSIONED_NAMESPACE_DECL
00071 
00072 #endif  /* TAO_HAS_INTERCEPTORS == 1 */
00073 
00074 #include /**/ "ace/post.h"
00075 
00076 #endif /* TAO_PI_ORB_INITIALIZER_H */

Generated on Sun Jan 27 13:29:59 2008 for TAO_PI by doxygen 1.3.6