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 14 import org.omg.PortableServer.POAPackage.ObjectAlreadyActive ; 15 import org.omg.PortableServer.POAPackage.ServantAlreadyActive ; 16 import org.omg.PortableServer.POAPackage.ServantNotActive ; 17 import org.omg.PortableServer.POAPackage.NoServant ; 18 import org.omg.PortableServer.POAPackage.WrongPolicy ; 19 import org.omg.PortableServer.POAPackage.ObjectNotActive ; 20 21 28 public interface POAPolicyMediator { 29 32 Policies getPolicies() ; 33 34 39 int getScid() ; 40 41 46 int getServerId() ; 47 48 55 java.lang.Object getInvocationServant( byte[] id, 56 String operation ) throws ForwardRequest ; 57 58 60 void returnServant() ; 61 62 65 void etherealizeAll() ; 66 67 69 void clearAOM() ; 70 71 74 ServantManager getServantManager() throws WrongPolicy ; 75 76 79 void setServantManager( ServantManager servantManager ) throws WrongPolicy ; 80 81 84 Servant getDefaultServant() throws NoServant , WrongPolicy ; 85 86 89 void setDefaultServant( Servant servant ) throws WrongPolicy ; 90 91 void activateObject( byte[] id, Servant servant ) 92 throws ObjectAlreadyActive , ServantAlreadyActive , WrongPolicy ; 93 94 97 Servant deactivateObject( byte[] id ) throws ObjectNotActive , WrongPolicy ; 98 99 102 byte[] newSystemId() throws WrongPolicy ; 103 104 byte[] servantToId( Servant servant ) throws ServantNotActive , WrongPolicy ; 105 106 Servant idToServant( byte[] id ) throws ObjectNotActive , WrongPolicy ; 107 } 108 | Popular Tags |