1. package com.sun.corba.se.ActivationIDL;
  2. /**
  3. * com/sun/corba/se/ActivationIDL/_InitialNameServiceImplBase.java .
  4. * Generated by the IDL-to-Java compiler (portable), version "3.1"
  5. * from ../../../../../../src/share/classes/com/sun/corba/se/ActivationIDL/activation.idl
  6. * Sunday, February 22, 2004 11:21:42 PM PST
  7. */
  8. public abstract class _InitialNameServiceImplBase extends org.omg.CORBA.portable.ObjectImpl
  9. implements com.sun.corba.se.ActivationIDL.InitialNameService, org.omg.CORBA.portable.InvokeHandler
  10. {
  11. // Constructors
  12. public _InitialNameServiceImplBase ()
  13. {
  14. }
  15. private static java.util.Hashtable _methods = new java.util.Hashtable ();
  16. static
  17. {
  18. _methods.put ("bind", new java.lang.Integer (0));
  19. }
  20. public org.omg.CORBA.portable.OutputStream _invoke (String $method,
  21. org.omg.CORBA.portable.InputStream in,
  22. org.omg.CORBA.portable.ResponseHandler $rh)
  23. {
  24. org.omg.CORBA.portable.OutputStream out = null;
  25. java.lang.Integer __method = (java.lang.Integer)_methods.get ($method);
  26. if (__method == null)
  27. throw new org.omg.CORBA.BAD_OPERATION (0, org.omg.CORBA.CompletionStatus.COMPLETED_MAYBE);
  28. switch (__method.intValue ())
  29. {
  30. // bind initial name
  31. case 0: // ActivationIDL/InitialNameService/bind
  32. {
  33. try {
  34. String name = in.read_string ();
  35. org.omg.CORBA.Object obj = org.omg.CORBA.ObjectHelper.read (in);
  36. boolean isPersistant = in.read_boolean ();
  37. this.bind (name, obj, isPersistant);
  38. out = $rh.createReply();
  39. } catch (com.sun.corba.se.ActivationIDL.InitialNameServicePackage.NameAlreadyBound $ex) {
  40. out = $rh.createExceptionReply ();
  41. com.sun.corba.se.ActivationIDL.InitialNameServicePackage.NameAlreadyBoundHelper.write (out, $ex);
  42. }
  43. break;
  44. }
  45. default:
  46. throw new org.omg.CORBA.BAD_OPERATION (0, org.omg.CORBA.CompletionStatus.COMPLETED_MAYBE);
  47. }
  48. return out;
  49. } // _invoke
  50. // Type-specific CORBA::Object operations
  51. private static String[] __ids = {
  52. "IDL:ActivationIDL/InitialNameService:1.0"};
  53. public String[] _ids ()
  54. {
  55. return (String[])__ids.clone ();
  56. }
  57. } // class _InitialNameServiceImplBase