1 7 8 package com.sun.corba.se.impl.oa.poa ; 9 10 abstract class POAPolicyMediatorFactory { 11 static POAPolicyMediator create( Policies policies, POAImpl poa ) 15 { 16 if (policies.retainServants()) { 17 if (policies.useActiveMapOnly()) 18 return new POAPolicyMediatorImpl_R_AOM( policies, poa ) ; 19 else if (policies.useDefaultServant()) 20 return new POAPolicyMediatorImpl_R_UDS( policies, poa ) ; 21 else if (policies.useServantManager()) 22 return new POAPolicyMediatorImpl_R_USM( policies, poa ) ; 23 else 24 throw poa.invocationWrapper().pmfCreateRetain() ; 25 } else { 26 if (policies.useDefaultServant()) 27 return new POAPolicyMediatorImpl_NR_UDS( policies, poa ) ; 28 else if (policies.useServantManager()) 29 return new POAPolicyMediatorImpl_NR_USM( policies, poa ) ; 30 else 31 throw poa.invocationWrapper().pmfCreateNonRetain() ; 32 } 33 } 34 } 35 | Popular Tags |