/** * Given any Tie, return the corresponding object refernce, activating the Servant if necessary. */ public static org.omg.CORBA.Object activateTie(Tie tie) { /** * Any implementation of Tie should be either a Servant or an ObjectImpl, depending on which style of code * generation is used. rmic -iiop by default results in an ObjectImpl-based Tie, while rmic -iiop -poa results * in a Servant-based Tie. Dynamic RMI-IIOP also uses Servant-based Ties (see * impl.presentation.rmi.ReflectiveTie). */ if (tie instanceof ObjectImpl) { return tie.thisObject(); } else if (tie instanceof Servant) { Servant servant = (Servant) tie; return activateServant(servant); } else { throw wrapper.badActivateTieCall(); } }
/** * Given any Tie, return the corresponding object refernce, activating the Servant if necessary. */ public static org.omg.CORBA.Object activateTie(Tie tie) { /** * Any implementation of Tie should be either a Servant or an ObjectImpl, depending on which style of code * generation is used. rmic -iiop by default results in an ObjectImpl-based Tie, while rmic -iiop -poa results * in a Servant-based Tie. Dynamic RMI-IIOP also uses Servant-based Ties (see * impl.presentation.rmi.ReflectiveTie). */ if (tie instanceof ObjectImpl) { return tie.thisObject(); } else if (tie instanceof Servant) { Servant servant = (Servant) tie; return activateServant(servant); } else { throw wrapper.badActivateTieCall(); } }