1 7 8 package com.sun.corba.se.impl.oa.poa ; 9 10 import org.omg.PortableServer.Servant ; 11 import org.omg.PortableServer.ServantManager ; 12 import org.omg.PortableServer.ForwardRequest ; 13 import org.omg.PortableServer.POAPackage.WrongPolicy ; 14 import org.omg.PortableServer.POAPackage.ObjectNotActive ; 15 import org.omg.PortableServer.POAPackage.ServantNotActive ; 16 import org.omg.PortableServer.POAPackage.ObjectAlreadyActive ; 17 import org.omg.PortableServer.POAPackage.ServantAlreadyActive ; 18 import org.omg.PortableServer.POAPackage.NoServant ; 19 20 import com.sun.corba.se.impl.orbutil.concurrent.SyncUtil ; 21 import com.sun.corba.se.impl.orbutil.ORBUtility ; 22 import com.sun.corba.se.impl.orbutil.ORBConstants ; 23 24 import com.sun.corba.se.impl.oa.NullServantImpl ; 25 26 33 public class POAPolicyMediatorImpl_R_AOM extends POAPolicyMediatorBase_R { 34 POAPolicyMediatorImpl_R_AOM( Policies policies, POAImpl poa ) 35 { 36 super( policies, poa ) ; 38 39 if (!policies.useActiveMapOnly()) 41 throw poa.invocationWrapper().policyMediatorBadPolicyInFactory() ; 42 } 43 44 protected java.lang.Object internalGetServant( byte[] id, 45 String operation ) throws ForwardRequest 46 { 47 java.lang.Object servant = internalIdToServant( id ) ; 48 if (servant == null) 49 servant = new NullServantImpl( 50 poa.invocationWrapper().nullServant() ) ; 51 return servant ; 52 } 53 54 public void etherealizeAll() 55 { 56 } 58 59 public ServantManager getServantManager() throws WrongPolicy 60 { 61 throw new WrongPolicy (); 62 } 63 64 public void setServantManager( ServantManager servantManager ) 65 throws WrongPolicy 66 { 67 throw new WrongPolicy (); 68 } 69 70 public Servant getDefaultServant() throws NoServant , WrongPolicy 71 { 72 throw new WrongPolicy (); 73 } 74 75 public void setDefaultServant( Servant servant ) throws WrongPolicy 76 { 77 throw new WrongPolicy (); 78 } 79 80 public Servant idToServant( byte[] id ) 81 throws WrongPolicy , ObjectNotActive 82 { 83 Servant s = internalIdToServant( id ) ; 84 85 if (s == null) 86 throw new ObjectNotActive () ; 87 else 88 return s; 89 } 90 } 91 | Popular Tags |