BoilerPlate: Reusable CORBA |
00001 00029 #ifndef _SIMPLE_SERVANTFACTORY_GUARD 00030 #define _SIMPLE_SERVANTFACTORY_GUARD 00031 00032 #include "ServantFactory.h" 00033 00049 class ServantFactory_Simple : public ServantFactory 00050 { 00051 public: 00057 ServantFactory_Simple( std::string the_name); 00058 00066 ServantFactory_Simple( 00067 std::string the_name, 00068 bool isSingleThreaded, 00069 bool useSystemId 00070 ); 00071 00077 explicit ServantFactory_Simple( const char* the_name); 00078 00086 ServantFactory_Simple( 00087 const char* the_name, 00088 bool isSingleThreaded, 00089 bool useSystemId 00090 ); 00091 00093 virtual ~ServantFactory_Simple(); 00094 00095 00109 virtual void 00110 build(CORBA::ORB_ptr orb, PortableServer::POA_ptr poa) 00111 throw(ServantFactory::ServantBuildException); 00112 00113 protected: 00114 00115 00135 virtual void build_servants( 00136 CORBA::ORB_ptr orb, 00137 PortableServer::POA_ptr poa 00138 ) 00139 throw(ServantFactory::ServantBuildException) = 0; 00140 00141 private: 00142 00143 00144 CORBA::PolicyList _buildPolicies(PortableServer::POA_ptr); 00145 00146 void _createPOA(PortableServer::POA_ptr, CORBA::PolicyList&); 00147 bool _isSingleThreaded; 00148 bool _useSystemId; 00149 00150 }; 00151 00152 00153 #endif // _SIMPLE_SERVANTFACTORY_GUARD 00154
Copyright © BoilerPlate.org | Generated on Tue Nov 30 16:22:32 2004 for BoilerPlate by 1.3.7 |