KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > com > sun > corba > se > spi > activation > _InitialNameServiceImplBase


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

10
11 public abstract class _InitialNameServiceImplBase extends org.omg.CORBA.portable.ObjectImpl JavaDoc
12                 implements com.sun.corba.se.spi.activation.InitialNameService, org.omg.CORBA.portable.InvokeHandler JavaDoc
13 {
14
15   // Constructors
16
public _InitialNameServiceImplBase ()
17   {
18   }
19
20   private static java.util.Hashtable JavaDoc _methods = new java.util.Hashtable JavaDoc ();
21   static
22   {
23     _methods.put ("bind", new java.lang.Integer JavaDoc (0));
24   }
25
26   public org.omg.CORBA.portable.OutputStream JavaDoc _invoke (String JavaDoc $method,
27                                 org.omg.CORBA.portable.InputStream JavaDoc in,
28                                 org.omg.CORBA.portable.ResponseHandler JavaDoc $rh)
29   {
30     org.omg.CORBA.portable.OutputStream JavaDoc out = null;
31     java.lang.Integer JavaDoc __method = (java.lang.Integer JavaDoc)_methods.get ($method);
32     if (__method == null)
33       throw new org.omg.CORBA.BAD_OPERATION JavaDoc (0, org.omg.CORBA.CompletionStatus.COMPLETED_MAYBE);
34
35     switch (__method.intValue ())
36     {
37
38   // bind initial name
39
case 0: // activation/InitialNameService/bind
40
{
41          try {
42            String JavaDoc name = in.read_string ();
43            org.omg.CORBA.Object JavaDoc obj = org.omg.CORBA.ObjectHelper.read (in);
44            boolean isPersistant = in.read_boolean ();
45            this.bind (name, obj, isPersistant);
46            out = $rh.createReply();
47          } catch (com.sun.corba.se.spi.activation.InitialNameServicePackage.NameAlreadyBound $ex) {
48            out = $rh.createExceptionReply ();
49            com.sun.corba.se.spi.activation.InitialNameServicePackage.NameAlreadyBoundHelper.write (out, $ex);
50          }
51          break;
52        }
53
54        default:
55          throw new org.omg.CORBA.BAD_OPERATION JavaDoc (0, org.omg.CORBA.CompletionStatus.COMPLETED_MAYBE);
56     }
57
58     return out;
59   } // _invoke
60

61   // Type-specific CORBA::Object operations
62
private static String JavaDoc[] __ids = {
63     "IDL:activation/InitialNameService:1.0"};
64
65   public String JavaDoc[] _ids ()
66   {
67     return (String JavaDoc[])__ids.clone ();
68   }
69
70
71 } // class _InitialNameServiceImplBase
72
Popular Tags