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 81455 2008-04-28 10:26:37Z 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/PI_includeC.h"
00030 
00031 TAO_BEGIN_VERSIONED_NAMESPACE_DECL
00032 
00033 /// Forward Declarations
00034 class TAO_PI_PolicyFactory;
00035 
00036 /// PortableServer ORB initializer.
00037 class TAO_PI_Export TAO_PI_ORBInitializer
00038   : public virtual PortableInterceptor::ORBInitializer,
00039     public virtual ::CORBA::LocalObject
00040 {
00041 public:
00042 
00043   /**
00044    * @name PortableInterceptor::ORBInitializer methods
00045    *
00046    * The following methods are required by the
00047    * PortableInterceptor::ORBInitializer interface.
00048    */
00049   //@{
00050   void pre_init (PortableInterceptor::ORBInitInfo_ptr info);
00051 
00052   void post_init (PortableInterceptor::ORBInitInfo_ptr info);
00053   //@}
00054 
00055 private:
00056 
00057   /// Register PortableInterceptor policy factories.
00058   void register_policy_factories (PortableInterceptor::ORBInitInfo_ptr info);
00059 
00060   /// Instance of the PI policy factory.
00061   /**
00062    * The PI policy factory is stateless and reentrant, so share
00063    * a single instance between all ORBs.
00064    */
00065   PortableInterceptor::PolicyFactory_var policy_factory_;
00066 };
00067 
00068 TAO_END_VERSIONED_NAMESPACE_DECL
00069 
00070 #endif  /* TAO_HAS_INTERCEPTORS == 1 */
00071 
00072 #include /**/ "ace/post.h"
00073 
00074 #endif /* TAO_PI_ORB_INITIALIZER_H */

Generated on Tue Feb 2 17:42:01 2010 for TAO_PI by  doxygen 1.4.7