KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > com > sun > corba > se > PortableActivationIDL > _InitialNameServiceImplBase


1 package com.sun.corba.se.PortableActivationIDL;
2
3
4 /**
5 * com/sun/corba/se/PortableActivationIDL/_InitialNameServiceImplBase.java .
6 * Generated by the IDL-to-Java compiler (portable), version "3.2"
7 * from ../../../../src/share/classes/com/sun/corba/se/PortableActivationIDL/activation.idl
8 * Saturday, February 9, 2008 2:04:41 AM PST
9 */

10
11
12 /** Interface used to support binding references in the bootstrap name
13     * service.
14     */

15 public abstract class _InitialNameServiceImplBase extends org.omg.CORBA.portable.ObjectImpl JavaDoc
16                 implements com.sun.corba.se.PortableActivationIDL.InitialNameService, org.omg.CORBA.portable.InvokeHandler JavaDoc
17 {
18
19   // Constructors
20
public _InitialNameServiceImplBase ()
21   {
22   }
23
24   private static java.util.Hashtable JavaDoc _methods = new java.util.Hashtable JavaDoc ();
25   static
26   {
27     _methods.put ("bind", new java.lang.Integer JavaDoc (0));
28   }
29
30   public org.omg.CORBA.portable.OutputStream JavaDoc _invoke (String JavaDoc $method,
31                                 org.omg.CORBA.portable.InputStream JavaDoc in,
32                                 org.omg.CORBA.portable.ResponseHandler JavaDoc $rh)
33   {
34     org.omg.CORBA.portable.OutputStream JavaDoc out = null;
35     java.lang.Integer JavaDoc __method = (java.lang.Integer JavaDoc)_methods.get ($method);
36     if (__method == null)
37       throw new org.omg.CORBA.BAD_OPERATION JavaDoc (0, org.omg.CORBA.CompletionStatus.COMPLETED_MAYBE);
38
39     switch (__method.intValue ())
40     {
41
42   /** bind initial name
43     */

44        case 0: // PortableActivationIDL/InitialNameService/bind
45
{
46          try {
47            String JavaDoc name = in.read_string ();
48            org.omg.CORBA.Object JavaDoc obj = org.omg.CORBA.ObjectHelper.read (in);
49            boolean isPersistant = in.read_boolean ();
50            this.bind (name, obj, isPersistant);
51            out = $rh.createReply();
52          } catch (com.sun.corba.se.PortableActivationIDL.InitialNameServicePackage.NameAlreadyBound $ex) {
53            out = $rh.createExceptionReply ();
54            com.sun.corba.se.PortableActivationIDL.InitialNameServicePackage.NameAlreadyBoundHelper.write (out, $ex);
55          }
56          break;
57        }
58
59        default:
60          throw new org.omg.CORBA.BAD_OPERATION JavaDoc (0, org.omg.CORBA.CompletionStatus.COMPLETED_MAYBE);
61     }
62
63     return out;
64   } // _invoke
65

66   // Type-specific CORBA::Object operations
67
private static String JavaDoc[] __ids = {
68     "IDL:PortableActivationIDL/InitialNameService:1.0"};
69
70   public String JavaDoc[] _ids ()
71   {
72     return (String JavaDoc[])__ids.clone ();
73   }
74
75
76 } // class _InitialNameServiceImplBase
77
Popular Tags