1 package com.sun.corba.se.spi.activation; 2 3 4 10 11 public abstract class _InitialNameServiceImplBase extends org.omg.CORBA.portable.ObjectImpl 12 implements com.sun.corba.se.spi.activation.InitialNameService, org.omg.CORBA.portable.InvokeHandler 13 { 14 15 public _InitialNameServiceImplBase () 17 { 18 } 19 20 private static java.util.Hashtable _methods = new java.util.Hashtable (); 21 static 22 { 23 _methods.put ("bind", new java.lang.Integer (0)); 24 } 25 26 public org.omg.CORBA.portable.OutputStream _invoke (String $method, 27 org.omg.CORBA.portable.InputStream in, 28 org.omg.CORBA.portable.ResponseHandler $rh) 29 { 30 org.omg.CORBA.portable.OutputStream out = null; 31 java.lang.Integer __method = (java.lang.Integer )_methods.get ($method); 32 if (__method == null) 33 throw new org.omg.CORBA.BAD_OPERATION (0, org.omg.CORBA.CompletionStatus.COMPLETED_MAYBE); 34 35 switch (__method.intValue ()) 36 { 37 38 case 0: { 41 try { 42 String name = in.read_string (); 43 org.omg.CORBA.Object 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 (0, org.omg.CORBA.CompletionStatus.COMPLETED_MAYBE); 56 } 57 58 return out; 59 } 61 private static String [] __ids = { 63 "IDL:activation/InitialNameService:1.0"}; 64 65 public String [] _ids () 66 { 67 return (String [])__ids.clone (); 68 } 69 70 71 } | Popular Tags |