public NamingContext new_context() { try { // create and initialize a new context. CorbaNamingContext newContextImpl = new CorbaNamingContext(); newContextImpl.init(this.poa, this.doPurge, this.noPing); // create the oid for the new context and activate it with the naming service POA. String oid = new String(this.poa.servant_to_id(this), StandardCharsets.UTF_8) + "/ctx" + (++this.childCount); this.poa.activate_object_with_id(oid.getBytes(StandardCharsets.UTF_8), newContextImpl); // add the newly-created context to the cache. contextImpls.put(oid, newContextImpl); return NamingContextExtHelper.narrow(this.poa.create_reference_with_id(oid.getBytes(StandardCharsets.UTF_8), "IDL:omg.org/CosNaming/NamingContextExt:1.0")); } catch (Exception e) { IIOPLogger.ROOT_LOGGER.failedToCreateNamingContext(e); return null; } }
public org.omg.CORBA.Object resolve(NameComponent[] nc) throws NotFound, CannotProceed, InvalidName { if (this.destroyed) throw new CannotProceed(); if (nc == null || nc.length == 0) throw new InvalidName(); Name n = new Name(nc[0]); if (nc.length > 1) { org.omg.CORBA.Object next_context = (org.omg.CORBA.Object) this.contexts.get(n); if ((next_context == null) || (isDead(next_context))) throw new NotFound(NotFoundReason.missing_node, nc); NameComponent[] nc_prime = new NameComponent[nc.length - 1]; System.arraycopy(nc, 1, nc_prime, 0, nc_prime.length); // try first to call the context implementation object directly. String contextOID = this.getObjectOID(next_context); CorbaNamingContext jbossContext = (contextOID == null ? null : contextImpls.get(contextOID)); if (jbossContext != null) return jbossContext.resolve(nc_prime); else return NamingContextExtHelper.narrow(next_context).resolve(nc_prime); } else { org.omg.CORBA.Object result = (org.omg.CORBA.Object) this.contexts.get(n); if (result == null) result = (org.omg.CORBA.Object) this.names.get(n); if (result == null) throw new NotFound(NotFoundReason.missing_node, n.components()); if (!noPing && isDead(result)) throw new NotFound(NotFoundReason.missing_node, n.components()); return result; } }
jbossContext.rebind(ncx, obj); else NamingContextExtHelper.narrow(context).rebind(ncx, obj);
jbossContext.unbind(ncx); else NamingContextExtHelper.narrow(context).unbind(ncx);
jbossContext.rebind_context(ncx, obj); else NamingContextExtHelper.narrow(context).rebind_context(ncx, obj);
jbossContext.bind_context(ncx, obj); else NamingContextExtHelper.narrow(context).bind_context(ncx, obj);
jbossContext.bind(ncx, obj); else NamingContextExtHelper.narrow(context).bind(ncx, obj);
namingService = NamingContextExtHelper.narrow(namingPOA.create_reference_with_id(rootContextId, "IDL:omg.org/CosNaming/NamingContextExt:1.0"));
public NamingContextExt _this(org.omg.CORBA.ORB orb) { return NamingContextExtHelper.narrow( super._this_object(orb)); }
public org.omg.CosNaming.NamingContextExt _this(org.omg.CORBA.ORB orb) { org.omg.CORBA.Object __o = _this_object(orb) ; org.omg.CosNaming.NamingContextExt __r = org.omg.CosNaming.NamingContextExtHelper.narrow(__o); return __r; } public NamingContextExtOperations _delegate()
public NamingContextExt _this() { return NamingContextExtHelper.narrow( super._this_object()); }
public NamingContextExt _this(org.omg.CORBA.ORB orb) { return NamingContextExtHelper.narrow( super._this_object(orb)); }
public static org.omg.CosNaming.NamingContextExt extract(final org.omg.CORBA.Any any) { return narrow(any.extract_Object()) ; } public static String id()
public org.omg.CosNaming.NamingContextExt _this() { org.omg.CORBA.Object __o = _this_object() ; org.omg.CosNaming.NamingContextExt __r = org.omg.CosNaming.NamingContextExtHelper.narrow(__o); return __r; } public org.omg.CosNaming.NamingContextExt _this(org.omg.CORBA.ORB orb)
public org.omg.CosNaming.NamingContextExt _this(org.omg.CORBA.ORB orb) { org.omg.CORBA.Object __o = _this_object(orb) ; org.omg.CosNaming.NamingContextExt __r = org.omg.CosNaming.NamingContextExtHelper.narrow(__o); return __r; } public org.omg.CORBA.portable.OutputStream _invoke(String method, org.omg.CORBA.portable.InputStream _input, org.omg.CORBA.portable.ResponseHandler handler)
public org.omg.CosNaming.NamingContextExt _this() { org.omg.CORBA.Object __o = _this_object() ; org.omg.CosNaming.NamingContextExt __r = org.omg.CosNaming.NamingContextExtHelper.narrow(__o); return __r; } public org.omg.CosNaming.NamingContextExt _this(org.omg.CORBA.ORB orb)
public static NamingContextExt read(final org.omg.CORBA.portable.InputStream in) { return narrow(in.read_Object(org.omg.CosNaming._NamingContextExtStub.class)); } public static void write(final org.omg.CORBA.portable.OutputStream _out, final org.omg.CosNaming.NamingContextExt s)
public NamingContextExt _this() { return NamingContextExtHelper.narrow( super._this_object()); }
public static NamingContextExt read(final org.omg.CORBA.portable.InputStream in) { return narrow(in.read_Object(org.omg.CosNaming._NamingContextExtStub.class)); } public static void write(final org.omg.CORBA.portable.OutputStream _out, final org.omg.CosNaming.NamingContextExt s)
public org.omg.CosNaming.NamingContextExt _this() { org.omg.CORBA.Object __o = _this_object() ; org.omg.CosNaming.NamingContextExt __r = org.omg.CosNaming.NamingContextExtHelper.narrow(__o); return __r; } public org.omg.CosNaming.NamingContextExt _this(org.omg.CORBA.ORB orb)