public Servant idToServant(byte[] id) throws WrongPolicy, ObjectNotActive { if (defaultServant != null) return defaultServant; throw new ObjectNotActive(); } }
public Servant idToServant( byte[] id ) throws WrongPolicy, ObjectNotActive { if (defaultServant != null) return defaultServant; throw new ObjectNotActive() ; } }
public Servant idToServant(byte[] id) throws WrongPolicy, ObjectNotActive { if (defaultServant != null) return defaultServant; throw new ObjectNotActive(); } }
public Servant idToServant(byte[] id) throws WrongPolicy, ObjectNotActive { Servant s = internalIdToServant(id); if (s == null) throw new ObjectNotActive(); else return s; } }
public Servant idToServant(byte[] id) throws WrongPolicy, ObjectNotActive { Servant s = internalIdToServant(id); if (s == null) throw new ObjectNotActive(); else return s; } }
public Servant idToServant( byte[] id ) throws WrongPolicy, ObjectNotActive { Servant s = internalIdToServant( id ) ; if (s == null) throw new ObjectNotActive() ; else return s; } }
public static org.omg.PortableServer.POAPackage.ObjectNotActive read (org.omg.CORBA.portable.InputStream istream) { org.omg.PortableServer.POAPackage.ObjectNotActive value = new org.omg.PortableServer.POAPackage.ObjectNotActive (); // read and discard the repository ID istream.read_string (); return value; }
public Servant idToServant(byte[] id) throws WrongPolicy, ObjectNotActive { ActiveObjectMap.Key key = new ActiveObjectMap.Key(id); Servant s = internalKeyToServant(key); if (s == null) if (defaultServant != null) s = defaultServant; if (s == null) throw new ObjectNotActive(); return s; } }
public Servant idToServant( byte[] id ) throws WrongPolicy, ObjectNotActive { ActiveObjectMap.Key key = new ActiveObjectMap.Key( id ) ; Servant s = internalKeyToServant(key); if (s == null) if (defaultServant != null) s = defaultServant; if (s == null) throw new ObjectNotActive() ; return s; } }
public Servant idToServant(byte[] id) throws WrongPolicy, ObjectNotActive { ActiveObjectMap.Key key = new ActiveObjectMap.Key(id); Servant s = internalKeyToServant(key); if (s == null) if (defaultServant != null) s = defaultServant; if (s == null) throw new ObjectNotActive(); return s; } }
public static ObjectNotActive read(org.omg.CORBA.portable.InputStream in) { if(!id().equals(in.read_string())) throw new org.omg.CORBA.MARSHAL(); ObjectNotActive _ob_v = new ObjectNotActive(); return _ob_v; }
public static org.omg.PortableServer.POAPackage.ObjectNotActive read (final org.omg.CORBA.portable.InputStream in) { String id = in.read_string(); if (!id.equals(id())) throw new org.omg.CORBA.MARSHAL("wrong id: " + id); final org.omg.PortableServer.POAPackage.ObjectNotActive result = new org.omg.PortableServer.POAPackage.ObjectNotActive(id); return result; } public static void write (final org.omg.CORBA.portable.OutputStream out, final org.omg.PortableServer.POAPackage.ObjectNotActive s)
public static org.omg.PortableServer.POAPackage.ObjectNotActive read (final org.omg.CORBA.portable.InputStream in) { String id = in.read_string(); if (!id.equals(id())) throw new org.omg.CORBA.MARSHAL("wrong id: " + id); final org.omg.PortableServer.POAPackage.ObjectNotActive result = new org.omg.PortableServer.POAPackage.ObjectNotActive(id); return result; } public static void write (final org.omg.CORBA.portable.OutputStream out, final org.omg.PortableServer.POAPackage.ObjectNotActive s)
public Servant idToServant(byte[] id) throws WrongPolicy, ObjectNotActive { ActiveObjectMap.Key key = new ActiveObjectMap.Key(id); AOMEntry entry = activeObjectMap.get(key); Servant servant = activeObjectMap.getServant(entry); if (servant != null) return servant; else throw new ObjectNotActive(); } }
public Servant idToServant( byte[] id ) throws WrongPolicy, ObjectNotActive { ActiveObjectMap.Key key = new ActiveObjectMap.Key( id ) ; AOMEntry entry = activeObjectMap.get(key); Servant servant = activeObjectMap.getServant( entry ) ; if (servant != null) return servant ; else throw new ObjectNotActive() ; } }
public Servant idToServant(byte[] id) throws WrongPolicy, ObjectNotActive { ActiveObjectMap.Key key = new ActiveObjectMap.Key(id); AOMEntry entry = activeObjectMap.get(key); Servant servant = activeObjectMap.getServant(entry); if (servant != null) return servant; else throw new ObjectNotActive(); } }
public org.omg.PortableServer.Servant id_to_servant(byte[] oid) throws org.omg.PortableServer.POAPackage.ObjectNotActive, org.omg.PortableServer.POAPackage.WrongPolicy { if (poaControl_.getDestroyed()) { throw new org.omg.CORBA.OBJECT_NOT_EXIST("POA " + name_ + " has been destroyed"); } // // Requires the RETAIN policy or the USE_DEFAULT_SERVANT policy. // if (policies_.servantRetentionPolicy() != org.omg.PortableServer.ServantRetentionPolicyValue.RETAIN && policies_.requestProcessingPolicy() != org.omg.PortableServer.RequestProcessingPolicyValue.USE_DEFAULT_SERVANT) throw new org.omg.PortableServer.POAPackage.WrongPolicy(); org.omg.PortableServer.Servant servant = servantLocationStrategy_ .idToServant(oid, true); if (servant == null) throw new org.omg.PortableServer.POAPackage.ObjectNotActive(); return servant; }
@Override public org.omg.CORBA.Object id_to_reference (byte[] oid) throws ObjectNotActive, WrongPolicy { checkDestructionApparent (); if ( !isRetain() ) { throw new WrongPolicy(); } final Servant servant = aom.getServant(oid); // objectId is not active if (servant == null) { throw new ObjectNotActive(); } /* If the object with the specified ObjectId currently active, a reference encapsulating the information used to activate the object is returned. */ return getReference (oid, servant._all_interfaces (this, oid)[0], true); }
public org.omg.CORBA.Object id_to_reference(byte[] oid) throws org.omg.PortableServer.POAPackage.ObjectNotActive, org.omg.PortableServer.POAPackage.WrongPolicy { if (poaControl_.getDestroyed()) { throw new org.omg.CORBA.OBJECT_NOT_EXIST("POA " + name_ + " has been destroyed"); } // Requires the RETAIN policy // if (policies_.servantRetentionPolicy() != org.omg.PortableServer.ServantRetentionPolicyValue.RETAIN) throw new org.omg.PortableServer.POAPackage.WrongPolicy(); org.omg.PortableServer.Servant servant = servantLocationStrategy_ .idToServant(oid, false); if (servant == null) throw new org.omg.PortableServer.POAPackage.ObjectNotActive(); String intf = servant._all_interfaces(this, oid)[0]; return ort().make_object(intf, oid); }
public org.omg.PortableServer.Servant reference_to_servant( org.omg.CORBA.Object reference) throws org.omg.PortableServer.POAPackage.ObjectNotActive, org.omg.PortableServer.POAPackage.WrongAdapter, org.omg.PortableServer.POAPackage.WrongPolicy { org.apache.yoko.orb.OB.Assert._OB_assert(reference != null); if (poaControl_.getDestroyed()) { throw new org.omg.CORBA.OBJECT_NOT_EXIST("POA " + name_ + " has been destroyed"); } // // Requires the RETAIN policy or the USE_DEFAULT_SERVANT // policy. // if (policies_.servantRetentionPolicy() != org.omg.PortableServer.ServantRetentionPolicyValue.RETAIN && policies_.requestProcessingPolicy() != org.omg.PortableServer.RequestProcessingPolicyValue.USE_DEFAULT_SERVANT) throw new org.omg.PortableServer.POAPackage.WrongPolicy(); byte[] oid = reference_to_id(reference); org.omg.PortableServer.Servant servant = servantLocationStrategy_ .idToServant(oid, true); if (servant == null) throw new org.omg.PortableServer.POAPackage.ObjectNotActive(); return servant; }