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