42 PortableServer::POA_ptr
44 PortableServer::POA_ptr parentPOAP,
45 PortableServer::POAManager_ptr POAManagerP,
47 CORBA::Boolean isMultiThread,
48 CORBA::Boolean isPersistent
52 CORBA::PolicyList policies;
57 PortableServer::ThreadPolicyValue threadPolicy;
60 threadPolicy = PortableServer::ORB_CTRL_MODEL;
63 threadPolicy = PortableServer::SINGLE_THREAD_MODEL;
65 policies[i] = parentPOAP->create_thread_policy(threadPolicy);
68 PortableServer::LifespanPolicyValue lifeSpanPolicy;
69 PortableServer::IdAssignmentPolicyValue idAssignPolicy;
70 PortableServer::ImplicitActivationPolicyValue implicitActivationPolicy;
74 lifeSpanPolicy = PortableServer::PERSISTENT;
75 idAssignPolicy = PortableServer::USER_ID;
79 lifeSpanPolicy = PortableServer::TRANSIENT;
80 idAssignPolicy = PortableServer::SYSTEM_ID;
83 implicitActivationPolicy = PortableServer::IMPLICIT_ACTIVATION;
87 policies[i] = parentPOAP->create_lifespan_policy(lifeSpanPolicy);
91 policies[i] = parentPOAP->create_id_assignment_policy(idAssignPolicy);
98 policies[i] = parentPOAP->create_implicit_activation_policy(implicitActivationPolicy);
105 return parentPOAP->create_POA(POAName, POAManagerP, policies);
109 PortableServer::POA_ptr
111 PortableServer::POA_ptr parentPOAP,
112 PortableServer::POAManager_ptr POAManagerP,
113 const char * POAName,
114 CORBA::Boolean isMultiThread
118 CORBA::PolicyList policies;
123 PortableServer::ThreadPolicyValue threadPolicy;
126 threadPolicy = PortableServer::ORB_CTRL_MODEL;
129 threadPolicy = PortableServer::SINGLE_THREAD_MODEL;
131 policies[i] = parentPOAP->create_thread_policy(threadPolicy);
139 policies[i] = parentPOAP->create_id_uniqueness_policy(
140 PortableServer::MULTIPLE_ID
149 return parentPOAP->create_POA(POAName, POAManagerP, policies);
153 PortableServer::POA_ptr
155 PortableServer::POA_ptr parentPOAP,
156 PortableServer::POAManager_ptr POAManagerP,
157 const char * POAName,
158 CORBA::Boolean isMultiThread,
159 CORBA::Boolean isPersistent
163 CORBA::PolicyList policies;
168 PortableServer::ThreadPolicyValue threadPolicy;
171 threadPolicy = PortableServer::ORB_CTRL_MODEL;
174 threadPolicy = PortableServer::SINGLE_THREAD_MODEL;
176 policies[i] = parentPOAP->create_thread_policy(threadPolicy);
178 PortableServer::LifespanPolicyValue lifeSpanPolicy;
179 PortableServer::IdAssignmentPolicyValue idAssignPolicy;
184 lifeSpanPolicy = PortableServer::PERSISTENT;
185 idAssignPolicy = PortableServer::USER_ID;
189 lifeSpanPolicy = PortableServer::TRANSIENT;
190 idAssignPolicy = PortableServer::SYSTEM_ID;
195 policies[i] = parentPOAP->create_lifespan_policy(lifeSpanPolicy);
199 policies[i] = parentPOAP->create_id_assignment_policy(idAssignPolicy);
207 policies[i] = parentPOAP->create_request_processing_policy(
208 PortableServer::USE_SERVANT_MANAGER
213 return parentPOAP->create_POA(POAName, POAManagerP, policies);
217 PortableServer::POA_ptr
219 PortableServer::POA_ptr parentPOAP,
220 PortableServer::POAManager_ptr POAManagerP,
221 const char * POAName,
222 CORBA::Boolean isMultiThread,
223 CORBA::Boolean isPersistent
227 CORBA::PolicyList policies;
232 PortableServer::ThreadPolicyValue threadPolicy;
235 threadPolicy = PortableServer::ORB_CTRL_MODEL;
238 threadPolicy = PortableServer::SINGLE_THREAD_MODEL;
240 policies[i] = parentPOAP->create_thread_policy(threadPolicy);
242 PortableServer::LifespanPolicyValue lifeSpanPolicy;
243 PortableServer::IdAssignmentPolicyValue idAssignPolicy;
248 lifeSpanPolicy = PortableServer::PERSISTENT;
249 idAssignPolicy = PortableServer::USER_ID;
253 lifeSpanPolicy = PortableServer::TRANSIENT;
254 idAssignPolicy = PortableServer::SYSTEM_ID;
259 policies[i] = parentPOAP->create_lifespan_policy(lifeSpanPolicy);
263 policies[i] = parentPOAP->create_id_assignment_policy(idAssignPolicy);
271 policies[i] = parentPOAP->create_request_processing_policy(
272 PortableServer::USE_SERVANT_MANAGER
277 policies[i] = parentPOAP->create_servant_retention_policy(
278 PortableServer::NON_RETAIN
281 return parentPOAP->create_POA(POAName, POAManagerP, policies);
285 PortableServer::POA_ptr
287 PortableServer::POA_ptr parentPOAP,
288 PortableServer::POAManager_ptr POAManagerP,
289 const char * POAName,
290 CORBA::Boolean isMultiThread
294 CORBA::PolicyList policies;
299 PortableServer::ThreadPolicyValue threadPolicy;
302 threadPolicy = PortableServer::ORB_CTRL_MODEL;
305 threadPolicy = PortableServer::SINGLE_THREAD_MODEL;
307 policies[i] = parentPOAP->create_thread_policy(threadPolicy);
319 policies[i] = parentPOAP->create_request_processing_policy(
320 PortableServer::USE_DEFAULT_SERVANT
325 policies[i] = parentPOAP->create_servant_retention_policy(
326 PortableServer::NON_RETAIN
329 return parentPOAP->create_POA(POAName, POAManagerP, policies);
static PortableServer::POA_ptr create_service_POA(PortableServer::POA_ptr parentPOAP, PortableServer::POAManager_ptr POAManagerP, const char *POAName, CORBA::Boolean isMultiThread)
static PortableServer::POA_ptr create_servant_activator_POA(PortableServer::POA_ptr parentPOAP, PortableServer::POAManager_ptr POAManagerP, const char *POAName, CORBA::Boolean isMultiThread, CORBA::Boolean isPersistent)
static PortableServer::POA_ptr create_default_servant_POA(PortableServer::POA_ptr parentPOAP, PortableServer::POAManager_ptr POAManagerP, const char *POAName, CORBA::Boolean isMultiThread)
static PortableServer::POA_ptr create_basic_POA(PortableServer::POA_ptr parentPOAP, PortableServer::POAManager_ptr POAManagerP, const char *POAName, CORBA::Boolean isMultiThread, CORBA::Boolean isPersistent)
static PortableServer::POA_ptr create_servant_locator_POA(PortableServer::POA_ptr parentPOAP, PortableServer::POAManager_ptr POAManagerP, const char *POAName, CORBA::Boolean isMultiThread, CORBA::Boolean isPersistent)