1. package com.sun.corba.se.spi.activation;
  2. /**
  3. * com/sun/corba/se/spi/activation/_ServerImplBase.java .
  4. * Generated by the IDL-to-Java compiler (portable), version "3.2"
  5. * from ../../../../src/share/classes/com/sun/corba/se/spi/activation/activation.idl
  6. * Wednesday, September 15, 2004 3:50:42 AM PDT
  7. */
  8. /** Server callback API, passed to Activator in active method.
  9. */
  10. public abstract class _ServerImplBase extends org.omg.CORBA.portable.ObjectImpl
  11. implements com.sun.corba.se.spi.activation.Server, org.omg.CORBA.portable.InvokeHandler
  12. {
  13. // Constructors
  14. public _ServerImplBase ()
  15. {
  16. }
  17. private static java.util.Hashtable _methods = new java.util.Hashtable ();
  18. static
  19. {
  20. _methods.put ("shutdown", new java.lang.Integer (0));
  21. _methods.put ("install", new java.lang.Integer (1));
  22. _methods.put ("uninstall", new java.lang.Integer (2));
  23. }
  24. public org.omg.CORBA.portable.OutputStream _invoke (String $method,
  25. org.omg.CORBA.portable.InputStream in,
  26. org.omg.CORBA.portable.ResponseHandler $rh)
  27. {
  28. org.omg.CORBA.portable.OutputStream out = null;
  29. java.lang.Integer __method = (java.lang.Integer)_methods.get ($method);
  30. if (__method == null)
  31. throw new org.omg.CORBA.BAD_OPERATION (0, org.omg.CORBA.CompletionStatus.COMPLETED_MAYBE);
  32. switch (__method.intValue ())
  33. {
  34. /** Shutdown this server. Returns after orb.shutdown() completes.
  35. */
  36. case 0: // activation/Server/shutdown
  37. {
  38. this.shutdown ();
  39. out = $rh.createReply();
  40. break;
  41. }
  42. /** Install the server. Returns after the install hook completes
  43. * execution in the server.
  44. */
  45. case 1: // activation/Server/install
  46. {
  47. this.install ();
  48. out = $rh.createReply();
  49. break;
  50. }
  51. /** Uninstall the server. Returns after the uninstall hook
  52. * completes execution.
  53. */
  54. case 2: // activation/Server/uninstall
  55. {
  56. this.uninstall ();
  57. out = $rh.createReply();
  58. break;
  59. }
  60. default:
  61. throw new org.omg.CORBA.BAD_OPERATION (0, org.omg.CORBA.CompletionStatus.COMPLETED_MAYBE);
  62. }
  63. return out;
  64. } // _invoke
  65. // Type-specific CORBA::Object operations
  66. private static String[] __ids = {
  67. "IDL:activation/Server:1.0"};
  68. public String[] _ids ()
  69. {
  70. return (String[])__ids.clone ();
  71. }
  72. } // class _ServerImplBase