KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > omg > CosNaming > _NamingContextStub


1 package org.omg.CosNaming;
2
3
4 /**
5 * org/omg/CosNaming/_NamingContextStub.java .
6 * Generated by the IDL-to-Java compiler (portable), version "3.2"
7 * from ../../../../src/share/classes/org/omg/CosNaming/nameservice.idl
8 * Saturday, February 9, 2008 9:40:10 AM GMT
9 */

10
11
12 /**
13  * A naming context is an object that contains a set of name bindings in
14  * which each name is unique. Different names can be bound to an object
15  * in the same or different contexts at the same time. <p>
16  *
17  * See <a HREF="http://www.omg.org/technology/documents/formal/naming_service.htm">
18  * CORBA COS
19  * Naming Specification.</a>
20  */

21 public class _NamingContextStub extends org.omg.CORBA.portable.ObjectImpl JavaDoc implements org.omg.CosNaming.NamingContext JavaDoc
22 {
23
24
25   /**
26  * Creates a binding of a name and an object in the naming context.
27  * Naming contexts that are bound using bind do not participate in name
28  * resolution when compound names are passed to be resolved.
29  *
30  * @param n Name of the object <p>
31  *
32  * @param obj The Object to bind with the given name<p>
33  *
34  * @exception org.omg.CosNaming.NamingContextPackage.NotFound Indicates
35  * the name does not identify a binding.<p>
36  *
37  * @exception org.omg.CosNaming.NamingContextPackage.CannotProceed
38  * Indicates that the implementation has given up for some reason.
39  * The client, however, may be able to continue the operation
40  * at the returned naming context.<p>
41  *
42  * @exception org.omg.CosNaming.NamingContextPackage.InvalidName
43  * Indicates that the name is invalid. <p>
44  *
45  * @exception org.omg.CosNaming.NamingContextPackage.AlreadyBound
46  * Indicates an object is already bound to the specified name.<p>
47  */

48   public void bind (org.omg.CosNaming.NameComponent JavaDoc[] n, org.omg.CORBA.Object JavaDoc obj) throws org.omg.CosNaming.NamingContextPackage.NotFound JavaDoc, org.omg.CosNaming.NamingContextPackage.CannotProceed JavaDoc, org.omg.CosNaming.NamingContextPackage.InvalidName JavaDoc, org.omg.CosNaming.NamingContextPackage.AlreadyBound JavaDoc
49   {
50             org.omg.CORBA.portable.InputStream JavaDoc $in = null;
51             try {
52                 org.omg.CORBA.portable.OutputStream JavaDoc $out = _request ("bind", true);
53                 org.omg.CosNaming.NameHelper.write ($out, n);
54                 org.omg.CORBA.ObjectHelper.write ($out, obj);
55                 $in = _invoke ($out);
56                 return;
57             } catch (org.omg.CORBA.portable.ApplicationException JavaDoc $ex) {
58                 $in = $ex.getInputStream ();
59                 String JavaDoc _id = $ex.getId ();
60                 if (_id.equals ("IDL:omg.org/CosNaming/NamingContext/NotFound:1.0"))
61                     throw org.omg.CosNaming.NamingContextPackage.NotFoundHelper.read ($in);
62                 else if (_id.equals ("IDL:omg.org/CosNaming/NamingContext/CannotProceed:1.0"))
63                     throw org.omg.CosNaming.NamingContextPackage.CannotProceedHelper.read ($in);
64                 else if (_id.equals ("IDL:omg.org/CosNaming/NamingContext/InvalidName:1.0"))
65                     throw org.omg.CosNaming.NamingContextPackage.InvalidNameHelper.read ($in);
66                 else if (_id.equals ("IDL:omg.org/CosNaming/NamingContext/AlreadyBound:1.0"))
67                     throw org.omg.CosNaming.NamingContextPackage.AlreadyBoundHelper.read ($in);
68                 else
69                     throw new org.omg.CORBA.MARSHAL JavaDoc (_id);
70             } catch (org.omg.CORBA.portable.RemarshalException JavaDoc $rm) {
71                 bind (n, obj );
72             } finally {
73                 _releaseReply ($in);
74             }
75   } // bind
76

77
78   /**
79  * Names an object that is a naming context. Naming contexts that
80  * are bound using bind_context() participate in name resolution
81  * when compound names are passed to be resolved.
82  *
83  * @param n Name of the object <p>
84  *
85  * @param nc NamingContect object to bind with the given name <p>
86  *
87  * @exception org.omg.CosNaming.NamingContextPackage.NotFound Indicates the name does not identify a binding.<p>
88  *
89  * @exception org.omg.CosNaming.NamingContextPackage.CannotProceed Indicates that the implementation has
90  * given up for some reason. The client, however, may be able to
91  * continue the operation at the returned naming context.<p>
92  *
93  * @exception org.omg.CosNaming.NamingContextPackage.InvalidName Indicates that the name is invalid. <p>
94  *
95  * @exception org.omg.CosNaming.NamingContextPackage.AlreadyBound Indicates an object is already
96  * bound to the specified name.<p>
97  */

98   public void bind_context (org.omg.CosNaming.NameComponent JavaDoc[] n, org.omg.CosNaming.NamingContext JavaDoc nc) throws org.omg.CosNaming.NamingContextPackage.NotFound JavaDoc, org.omg.CosNaming.NamingContextPackage.CannotProceed JavaDoc, org.omg.CosNaming.NamingContextPackage.InvalidName JavaDoc, org.omg.CosNaming.NamingContextPackage.AlreadyBound JavaDoc
99   {
100             org.omg.CORBA.portable.InputStream JavaDoc $in = null;
101             try {
102                 org.omg.CORBA.portable.OutputStream JavaDoc $out = _request ("bind_context", true);
103                 org.omg.CosNaming.NameHelper.write ($out, n);
104                 org.omg.CosNaming.NamingContextHelper.write ($out, nc);
105                 $in = _invoke ($out);
106                 return;
107             } catch (org.omg.CORBA.portable.ApplicationException JavaDoc $ex) {
108                 $in = $ex.getInputStream ();
109                 String JavaDoc _id = $ex.getId ();
110                 if (_id.equals ("IDL:omg.org/CosNaming/NamingContext/NotFound:1.0"))
111                     throw org.omg.CosNaming.NamingContextPackage.NotFoundHelper.read ($in);
112                 else if (_id.equals ("IDL:omg.org/CosNaming/NamingContext/CannotProceed:1.0"))
113                     throw org.omg.CosNaming.NamingContextPackage.CannotProceedHelper.read ($in);
114                 else if (_id.equals ("IDL:omg.org/CosNaming/NamingContext/InvalidName:1.0"))
115                     throw org.omg.CosNaming.NamingContextPackage.InvalidNameHelper.read ($in);
116                 else if (_id.equals ("IDL:omg.org/CosNaming/NamingContext/AlreadyBound:1.0"))
117                     throw org.omg.CosNaming.NamingContextPackage.AlreadyBoundHelper.read ($in);
118                 else
119                     throw new org.omg.CORBA.MARSHAL JavaDoc (_id);
120             } catch (org.omg.CORBA.portable.RemarshalException JavaDoc $rm) {
121                 bind_context (n, nc );
122             } finally {
123                 _releaseReply ($in);
124             }
125   } // bind_context
126

127
128   /**
129  * Creates a binding of a name and an object in the naming context
130  * even if the name is already bound in the context. Naming contexts
131  * that are bound using rebind do not participate in name resolution
132  * when compound names are passed to be resolved.
133  *
134  * @param n Name of the object <p>
135  *
136  * @parm obj The Object to rebind with the given name <p>
137  *
138  * @exception org.omg.CosNaming.NamingContextPackage.NotFound Indicates the name does not identify a binding.<p>
139  *
140  * @exception org.omg.CosNaming.NamingContextPackage.CannotProceed Indicates that the implementation has
141  * given up for some reason. The client, however, may be able to
142  * continue the operation at the returned naming context.<p>
143  *
144  * @exception org.omg.CosNaming.NamingContextPackage.InvalidName Indicates that the name is invalid. <p>
145  */

146   public void rebind (org.omg.CosNaming.NameComponent JavaDoc[] n, org.omg.CORBA.Object JavaDoc obj) throws org.omg.CosNaming.NamingContextPackage.NotFound JavaDoc, org.omg.CosNaming.NamingContextPackage.CannotProceed JavaDoc, org.omg.CosNaming.NamingContextPackage.InvalidName JavaDoc
147   {
148             org.omg.CORBA.portable.InputStream JavaDoc $in = null;
149             try {
150                 org.omg.CORBA.portable.OutputStream JavaDoc $out = _request ("rebind", true);
151                 org.omg.CosNaming.NameHelper.write ($out, n);
152                 org.omg.CORBA.ObjectHelper.write ($out, obj);
153                 $in = _invoke ($out);
154                 return;
155             } catch (org.omg.CORBA.portable.ApplicationException JavaDoc $ex) {
156                 $in = $ex.getInputStream ();
157                 String JavaDoc _id = $ex.getId ();
158                 if (_id.equals ("IDL:omg.org/CosNaming/NamingContext/NotFound:1.0"))
159                     throw org.omg.CosNaming.NamingContextPackage.NotFoundHelper.read ($in);
160                 else if (_id.equals ("IDL:omg.org/CosNaming/NamingContext/CannotProceed:1.0"))
161                     throw org.omg.CosNaming.NamingContextPackage.CannotProceedHelper.read ($in);
162                 else if (_id.equals ("IDL:omg.org/CosNaming/NamingContext/InvalidName:1.0"))
163                     throw org.omg.CosNaming.NamingContextPackage.InvalidNameHelper.read ($in);
164                 else
165                     throw new org.omg.CORBA.MARSHAL JavaDoc (_id);
166             } catch (org.omg.CORBA.portable.RemarshalException JavaDoc $rm) {
167                 rebind (n, obj );
168             } finally {
169                 _releaseReply ($in);
170             }
171   } // rebind
172

173
174   /**
175  * Creates a binding of a name and a naming context in the naming
176  * context even if the name is already bound in the context. Naming
177  * contexts that are bound using rebind_context() participate in name
178  * resolution when compound names are passed to be resolved.
179  *
180  * @param n Name of the object <p>
181  *
182  * @param nc NamingContect object to rebind with the given name <p>
183  *
184  * @exception org.omg.CosNaming.NamingContextPackage.NotFound Indicates the name does not identify a binding.<p>
185  *
186  * @exception org.omg.CosNaming.NamingContextPackage.CannotProceed Indicates that the implementation has
187  * given up for some reason. The client, however, may be able to
188  * continue the operation at the returned naming context.<p>
189  *
190  * @exception org.omg.CosNaming.NamingContextPackage.InvalidName Indicates that the name is invalid. <p>
191  */

192   public void rebind_context (org.omg.CosNaming.NameComponent JavaDoc[] n, org.omg.CosNaming.NamingContext JavaDoc nc) throws org.omg.CosNaming.NamingContextPackage.NotFound JavaDoc, org.omg.CosNaming.NamingContextPackage.CannotProceed JavaDoc, org.omg.CosNaming.NamingContextPackage.InvalidName JavaDoc
193   {
194             org.omg.CORBA.portable.InputStream JavaDoc $in = null;
195             try {
196                 org.omg.CORBA.portable.OutputStream JavaDoc $out = _request ("rebind_context", true);
197                 org.omg.CosNaming.NameHelper.write ($out, n);
198                 org.omg.CosNaming.NamingContextHelper.write ($out, nc);
199                 $in = _invoke ($out);
200                 return;
201             } catch (org.omg.CORBA.portable.ApplicationException JavaDoc $ex) {
202                 $in = $ex.getInputStream ();
203                 String JavaDoc _id = $ex.getId ();
204                 if (_id.equals ("IDL:omg.org/CosNaming/NamingContext/NotFound:1.0"))
205                     throw org.omg.CosNaming.NamingContextPackage.NotFoundHelper.read ($in);
206                 else if (_id.equals ("IDL:omg.org/CosNaming/NamingContext/CannotProceed:1.0"))
207                     throw org.omg.CosNaming.NamingContextPackage.CannotProceedHelper.read ($in);
208                 else if (_id.equals ("IDL:omg.org/CosNaming/NamingContext/InvalidName:1.0"))
209                     throw org.omg.CosNaming.NamingContextPackage.InvalidNameHelper.read ($in);
210                 else
211                     throw new org.omg.CORBA.MARSHAL JavaDoc (_id);
212             } catch (org.omg.CORBA.portable.RemarshalException JavaDoc $rm) {
213                 rebind_context (n, nc );
214             } finally {
215                 _releaseReply ($in);
216             }
217   } // rebind_context
218

219
220   /**
221  * The resolve operation is the process of retrieving an object
222  * bound to a name in a given context. The given name must exactly
223  * match the bound name. The naming service does not return the type
224  * of the object. Clients are responsible for "narrowing" the object
225  * to the appropriate type. That is, clients typically cast the returned
226  * object from Object to a more specialized interface.
227  *
228  * @param n Name of the object <p>
229  *
230  * @exception org.omg.CosNaming.NamingContextPackage.NotFound Indicates the name does not identify a binding.<p>
231  *
232  * @exception org.omg.CosNaming.NamingContextPackage.CannotProceed Indicates that the implementation has
233  * given up for some reason. The client, however, may be able to
234  * continue the operation at the returned naming context.<p>
235  *
236  * @exception org.omg.CosNaming.NamingContextPackage.InvalidName Indicates that the name is invalid. <p>
237  */

238   public org.omg.CORBA.Object JavaDoc resolve (org.omg.CosNaming.NameComponent JavaDoc[] n) throws org.omg.CosNaming.NamingContextPackage.NotFound JavaDoc, org.omg.CosNaming.NamingContextPackage.CannotProceed JavaDoc, org.omg.CosNaming.NamingContextPackage.InvalidName JavaDoc
239   {
240             org.omg.CORBA.portable.InputStream JavaDoc $in = null;
241             try {
242                 org.omg.CORBA.portable.OutputStream JavaDoc $out = _request ("resolve", true);
243                 org.omg.CosNaming.NameHelper.write ($out, n);
244                 $in = _invoke ($out);
245                 org.omg.CORBA.Object JavaDoc $result = org.omg.CORBA.ObjectHelper.read ($in);
246                 return $result;
247             } catch (org.omg.CORBA.portable.ApplicationException JavaDoc $ex) {
248                 $in = $ex.getInputStream ();
249                 String JavaDoc _id = $ex.getId ();
250                 if (_id.equals ("IDL:omg.org/CosNaming/NamingContext/NotFound:1.0"))
251                     throw org.omg.CosNaming.NamingContextPackage.NotFoundHelper.read ($in);
252                 else if (_id.equals ("IDL:omg.org/CosNaming/NamingContext/CannotProceed:1.0"))
253                     throw org.omg.CosNaming.NamingContextPackage.CannotProceedHelper.read ($in);
254                 else if (_id.equals ("IDL:omg.org/CosNaming/NamingContext/InvalidName:1.0"))
255                     throw org.omg.CosNaming.NamingContextPackage.InvalidNameHelper.read ($in);
256                 else
257                     throw new org.omg.CORBA.MARSHAL JavaDoc (_id);
258             } catch (org.omg.CORBA.portable.RemarshalException JavaDoc $rm) {
259                 return resolve (n );
260             } finally {
261                 _releaseReply ($in);
262             }
263   } // resolve
264

265
266   /**
267  * The unbind operation removes a name binding from a context.
268  *
269  * @param n Name of the object <p>
270  *
271  * @exception org.omg.CosNaming.NamingContextPackage.NotFound Indicates the name does not identify a binding.<p>
272  *
273  * @exception org.omg.CosNaming.NamingContextPackage.CannotProceed Indicates that the implementation has
274  * given up for some reason. The client, however, may be able to
275  * continue the operation at the returned naming context.<p>
276  *
277  * @exception org.omg.CosNaming.NamingContextPackage.InvalidName Indicates that the name is invalid. <p>
278  */

279   public void unbind (org.omg.CosNaming.NameComponent JavaDoc[] n) throws org.omg.CosNaming.NamingContextPackage.NotFound JavaDoc, org.omg.CosNaming.NamingContextPackage.CannotProceed JavaDoc, org.omg.CosNaming.NamingContextPackage.InvalidName JavaDoc
280   {
281             org.omg.CORBA.portable.InputStream JavaDoc $in = null;
282             try {
283                 org.omg.CORBA.portable.OutputStream JavaDoc $out = _request ("unbind", true);
284                 org.omg.CosNaming.NameHelper.write ($out, n);
285                 $in = _invoke ($out);
286                 return;
287             } catch (org.omg.CORBA.portable.ApplicationException JavaDoc $ex) {
288                 $in = $ex.getInputStream ();
289                 String JavaDoc _id = $ex.getId ();
290                 if (_id.equals ("IDL:omg.org/CosNaming/NamingContext/NotFound:1.0"))
291                     throw org.omg.CosNaming.NamingContextPackage.NotFoundHelper.read ($in);
292                 else if (_id.equals ("IDL:omg.org/CosNaming/NamingContext/CannotProceed:1.0"))
293                     throw org.omg.CosNaming.NamingContextPackage.CannotProceedHelper.read ($in);
294                 else if (_id.equals ("IDL:omg.org/CosNaming/NamingContext/InvalidName:1.0"))
295                     throw org.omg.CosNaming.NamingContextPackage.InvalidNameHelper.read ($in);
296                 else
297                     throw new org.omg.CORBA.MARSHAL JavaDoc (_id);
298             } catch (org.omg.CORBA.portable.RemarshalException JavaDoc $rm) {
299                 unbind (n );
300             } finally {
301                 _releaseReply ($in);
302             }
303   } // unbind
304

305
306   /**
307  * The list operation allows a client to iterate through a set of
308  * bindings in a naming context. <p>
309  *
310  * The list operation returns at most the requested number of
311  * bindings in BindingList bl.
312  * <ul>
313  * <li>If the naming context contains additional
314  * bindings, the list operation returns a BindingIterator with the
315  * additional bindings.
316  * <li>If the naming context does not contain additional
317  * bindings, the binding iterator is a nil object reference.
318  * </ul>
319  *
320  * @param how_many the maximum number of bindings to return <p>
321  *
322  * @param bl the returned list of bindings <p>
323  *
324  * @param bi the returned binding iterator <p>
325  */

326   public void list (int how_many, org.omg.CosNaming.BindingListHolder JavaDoc bl, org.omg.CosNaming.BindingIteratorHolder JavaDoc bi)
327   {
328             org.omg.CORBA.portable.InputStream JavaDoc $in = null;
329             try {
330                 org.omg.CORBA.portable.OutputStream JavaDoc $out = _request ("list", true);
331                 $out.write_ulong (how_many);
332                 $in = _invoke ($out);
333                 bl.value = org.omg.CosNaming.BindingListHelper.read ($in);
334                 bi.value = org.omg.CosNaming.BindingIteratorHelper.read ($in);
335                 return;
336             } catch (org.omg.CORBA.portable.ApplicationException JavaDoc $ex) {
337                 $in = $ex.getInputStream ();
338                 String JavaDoc _id = $ex.getId ();
339                 throw new org.omg.CORBA.MARSHAL JavaDoc (_id);
340             } catch (org.omg.CORBA.portable.RemarshalException JavaDoc $rm) {
341                 list (how_many, bl, bi );
342             } finally {
343                 _releaseReply ($in);
344             }
345   } // list
346

347
348   /**
349  * This operation returns a naming context implemented by the same
350  * naming server as the context on which the operation was invoked.
351  * The new context is not bound to any name.
352  */

353   public org.omg.CosNaming.NamingContext JavaDoc new_context ()
354   {
355             org.omg.CORBA.portable.InputStream JavaDoc $in = null;
356             try {
357                 org.omg.CORBA.portable.OutputStream JavaDoc $out = _request ("new_context", true);
358                 $in = _invoke ($out);
359                 org.omg.CosNaming.NamingContext JavaDoc $result = org.omg.CosNaming.NamingContextHelper.read ($in);
360                 return $result;
361             } catch (org.omg.CORBA.portable.ApplicationException JavaDoc $ex) {
362                 $in = $ex.getInputStream ();
363                 String JavaDoc _id = $ex.getId ();
364                 throw new org.omg.CORBA.MARSHAL JavaDoc (_id);
365             } catch (org.omg.CORBA.portable.RemarshalException JavaDoc $rm) {
366                 return new_context ( );
367             } finally {
368                 _releaseReply ($in);
369             }
370   } // new_context
371

372
373   /**
374  * This operation creates a new context and binds it to the name
375  * supplied as an argument. The newly-created context is implemented
376  * by the same naming server as the context in which it was bound (that
377  * is, the naming server that implements the context denoted by the
378  * name argument excluding the last component).
379  *
380  * @param n Name of the object <p>
381  *
382  * @exception org.omg.CosNaming.NamingContextPackage.NotFound Indicates the name does not identify a binding.<p>
383  *
384  * @exception org.omg.CosNaming.NamingContextPackage.AlreadyBound Indicates an object is already
385  * bound to the specified name.<p>
386  *
387  * @exception org.omg.CosNaming.NamingContextPackage.CannotProceed Indicates that the implementation has
388  * given up for some reason. The client, however, may be able to
389  * continue the operation at the returned naming context.<p>
390  *
391  * @exception org.omg.CosNaming.NamingContextPackage.InvalidName Indicates that the name is invalid. <p>
392  */

393   public org.omg.CosNaming.NamingContext JavaDoc bind_new_context (org.omg.CosNaming.NameComponent JavaDoc[] n) throws org.omg.CosNaming.NamingContextPackage.NotFound JavaDoc, org.omg.CosNaming.NamingContextPackage.AlreadyBound JavaDoc, org.omg.CosNaming.NamingContextPackage.CannotProceed JavaDoc, org.omg.CosNaming.NamingContextPackage.InvalidName JavaDoc
394   {
395             org.omg.CORBA.portable.InputStream JavaDoc $in = null;
396             try {
397                 org.omg.CORBA.portable.OutputStream JavaDoc $out = _request ("bind_new_context", true);
398                 org.omg.CosNaming.NameHelper.write ($out, n);
399                 $in = _invoke ($out);
400                 org.omg.CosNaming.NamingContext JavaDoc $result = org.omg.CosNaming.NamingContextHelper.read ($in);
401                 return $result;
402             } catch (org.omg.CORBA.portable.ApplicationException JavaDoc $ex) {
403                 $in = $ex.getInputStream ();
404                 String JavaDoc _id = $ex.getId ();
405                 if (_id.equals ("IDL:omg.org/CosNaming/NamingContext/NotFound:1.0"))
406                     throw org.omg.CosNaming.NamingContextPackage.NotFoundHelper.read ($in);
407                 else if (_id.equals ("IDL:omg.org/CosNaming/NamingContext/AlreadyBound:1.0"))
408                     throw org.omg.CosNaming.NamingContextPackage.AlreadyBoundHelper.read ($in);
409                 else if (_id.equals ("IDL:omg.org/CosNaming/NamingContext/CannotProceed:1.0"))
410                     throw org.omg.CosNaming.NamingContextPackage.CannotProceedHelper.read ($in);
411                 else if (_id.equals ("IDL:omg.org/CosNaming/NamingContext/InvalidName:1.0"))
412                     throw org.omg.CosNaming.NamingContextPackage.InvalidNameHelper.read ($in);
413                 else
414                     throw new org.omg.CORBA.MARSHAL JavaDoc (_id);
415             } catch (org.omg.CORBA.portable.RemarshalException JavaDoc $rm) {
416                 return bind_new_context (n );
417             } finally {
418                 _releaseReply ($in);
419             }
420   } // bind_new_context
421

422
423   /**
424  * The destroy operation deletes a naming context. If the naming
425  * context contains bindings, the NotEmpty exception is raised.
426  *
427  * @exception org.omg.CosNaming.NamingContextPackage.NotEmpty Indicates that the Naming Context contains bindings.
428  */

429   public void destroy () throws org.omg.CosNaming.NamingContextPackage.NotEmpty JavaDoc
430   {
431             org.omg.CORBA.portable.InputStream JavaDoc $in = null;
432             try {
433                 org.omg.CORBA.portable.OutputStream JavaDoc $out = _request ("destroy", true);
434                 $in = _invoke ($out);
435                 return;
436             } catch (org.omg.CORBA.portable.ApplicationException JavaDoc $ex) {
437                 $in = $ex.getInputStream ();
438                 String JavaDoc _id = $ex.getId ();
439                 if (_id.equals ("IDL:omg.org/CosNaming/NamingContext/NotEmpty:1.0"))
440                     throw org.omg.CosNaming.NamingContextPackage.NotEmptyHelper.read ($in);
441                 else
442                     throw new org.omg.CORBA.MARSHAL JavaDoc (_id);
443             } catch (org.omg.CORBA.portable.RemarshalException JavaDoc $rm) {
444                 destroy ( );
445             } finally {
446                 _releaseReply ($in);
447             }
448   } // destroy
449

450   // Type-specific CORBA::Object operations
451
private static String JavaDoc[] __ids = {
452     "IDL:omg.org/CosNaming/NamingContext:1.0"};
453
454   public String JavaDoc[] _ids ()
455   {
456     return (String JavaDoc[])__ids.clone ();
457   }
458
459   private void readObject (java.io.ObjectInputStream JavaDoc s) throws java.io.IOException JavaDoc
460   {
461      String JavaDoc str = s.readUTF ();
462      String JavaDoc[] args = null;
463      java.util.Properties JavaDoc props = null;
464      org.omg.CORBA.Object JavaDoc obj = org.omg.CORBA.ORB.init (args, props).string_to_object (str);
465      org.omg.CORBA.portable.Delegate JavaDoc delegate = ((org.omg.CORBA.portable.ObjectImpl JavaDoc) obj)._get_delegate ();
466      _set_delegate (delegate);
467   }
468
469   private void writeObject (java.io.ObjectOutputStream JavaDoc s) throws java.io.IOException JavaDoc
470   {
471      String JavaDoc[] args = null;
472      java.util.Properties JavaDoc props = null;
473      String JavaDoc str = org.omg.CORBA.ORB.init (args, props).object_to_string (this);
474      s.writeUTF (str);
475   }
476 } // class _NamingContextStub
477
Popular Tags