/** Use implicit activation to get an object reference for the servant. */ public static org.omg.CORBA.Object activateServant( Servant servant ) { POA poa = servant._default_POA() ; org.omg.CORBA.Object ref = null ; try { ref = poa.servant_to_reference( servant ) ; } catch (ServantNotActive sna) { throw wrapper.getDelegateServantNotActive( sna ) ; } catch (WrongPolicy wp) { throw wrapper.getDelegateWrongPolicy( wp ) ; } // Make sure that the POAManager is activated if no other // POAManager state management has taken place. POAManager mgr = poa.the_POAManager() ; if (mgr instanceof POAManagerImpl) { POAManagerImpl mgrImpl = (POAManagerImpl)mgr ; mgrImpl.implicitActivation() ; } return ref ; }
/** * Use implicit activation to get an object reference for the servant. */ public static org.omg.CORBA.Object activateServant(Servant servant) { POA poa = servant._default_POA(); org.omg.CORBA.Object ref = null; try { ref = poa.servant_to_reference(servant); } catch (ServantNotActive sna) { throw wrapper.getDelegateServantNotActive(sna); } catch (WrongPolicy wp) { throw wrapper.getDelegateWrongPolicy(wp); } // Make sure that the POAManager is activated if no other POAManager state management has taken place. POAManager mgr = poa.the_POAManager(); if (mgr instanceof POAManagerImpl) { POAManagerImpl mgrImpl = (POAManagerImpl) mgr; mgrImpl.implicitActivation(); } return ref; }
/** * Use implicit activation to get an object reference for the servant. */ public static org.omg.CORBA.Object activateServant(Servant servant) { POA poa = servant._default_POA(); org.omg.CORBA.Object ref = null; try { ref = poa.servant_to_reference(servant); } catch (ServantNotActive sna) { throw wrapper.getDelegateServantNotActive(sna); } catch (WrongPolicy wp) { throw wrapper.getDelegateWrongPolicy(wp); } // Make sure that the POAManager is activated if no other POAManager state management has taken place. POAManager mgr = poa.the_POAManager(); if (mgr instanceof POAManagerImpl) { POAManagerImpl mgrImpl = (POAManagerImpl) mgr; mgrImpl.implicitActivation(); } return ref; }
final public org.omg.CORBA.Object this_object (org.omg.PortableServer.Servant self) { check(); try { poa = poa(self); } catch (org.omg.CORBA.OBJ_ADAPTER e) { // Use servants default POA. Operation may be re-implemented // by servant implementation. poa = self._default_POA (); } if (poa == null) { throw new org.omg.CORBA.OBJ_ADAPTER("null value returned by _default_POA() on Servant " + self); } try { return (poa.servant_to_reference(self)); } catch(ServantNotActive e) { throw new org.omg.CORBA.OBJ_ADAPTER(e.toString()); } catch(WrongPolicy e) { throw new org.omg.CORBA.OBJ_ADAPTER(e.toString()); } }
org.omg.PortableServer.POA thePOA = self._default_POA(); org.apache.yoko.orb.OBPortableServer.POA_impl poaImpl = (org.apache.yoko.orb.OBPortableServer.POA_impl) thePOA; Current_impl current = poaImpl._OB_POACurrent();
public org.omg.CORBA.InterfaceDef get_interface( org.omg.PortableServer.Servant self) { org.omg.PortableServer.POA thePOA = self._default_POA(); org.apache.yoko.orb.OBPortableServer.POA_impl poaImpl = (org.apache.yoko.orb.OBPortableServer.POA_impl) thePOA;
defaultPOA = (POAImpl)self._default_POA(); } catch (ClassCastException exception){ throw wrapper.defaultPoaNotPoaimpl( exception ) ;
defaultPOA = (POAImpl)self._default_POA(); } catch (ClassCastException exception){ throw wrapper.defaultPoaNotPoaimpl( exception ) ;
defaultPOA = (POAImpl)self._default_POA(); } catch (ClassCastException exception){ throw wrapper.defaultPoaNotPoaimpl( exception ) ;