1. package com.sun.corba.se.PortableActivationIDL;
  2. /**
  3. * com/sun/corba/se/PortableActivationIDL/_ORBProxyImplBase.java .
  4. * Generated by the IDL-to-Java compiler (portable), version "3.2"
  5. * from ../../../../src/share/classes/com/sun/corba/se/PortableActivationIDL/activation.idl
  6. * Wednesday, September 15, 2004 3:50:44 AM PDT
  7. */
  8. /** ORB callback interface, passed to Activator in registerORB method.
  9. */
  10. public abstract class _ORBProxyImplBase extends org.omg.CORBA.portable.ObjectImpl
  11. implements com.sun.corba.se.PortableActivationIDL.ORBProxy, org.omg.CORBA.portable.InvokeHandler
  12. {
  13. // Constructors
  14. public _ORBProxyImplBase ()
  15. {
  16. }
  17. private static java.util.Hashtable _methods = new java.util.Hashtable ();
  18. static
  19. {
  20. _methods.put ("activate_adapter", new java.lang.Integer (0));
  21. }
  22. public org.omg.CORBA.portable.OutputStream _invoke (String $method,
  23. org.omg.CORBA.portable.InputStream in,
  24. org.omg.CORBA.portable.ResponseHandler $rh)
  25. {
  26. org.omg.CORBA.portable.OutputStream out = null;
  27. java.lang.Integer __method = (java.lang.Integer)_methods.get ($method);
  28. if (__method == null)
  29. throw new org.omg.CORBA.BAD_OPERATION (0, org.omg.CORBA.CompletionStatus.COMPLETED_MAYBE);
  30. switch (__method.intValue ())
  31. {
  32. /** Method used to cause ORB to activate the named adapter, if possible.
  33. * This will cause the named POA to register itself with the activator as
  34. * a side effect. This should always happen before this call can complete.
  35. * This method returns true if adapter activation succeeded, otherwise it
  36. * returns false.
  37. */
  38. case 0: // PortableActivationIDL/ORBProxy/activate_adapter
  39. {
  40. String name[] = org.omg.PortableInterceptor.AdapterNameHelper.read (in);
  41. boolean $result = false;
  42. $result = this.activate_adapter (name);
  43. out = $rh.createReply();
  44. out.write_boolean ($result);
  45. break;
  46. }
  47. default:
  48. throw new org.omg.CORBA.BAD_OPERATION (0, org.omg.CORBA.CompletionStatus.COMPLETED_MAYBE);
  49. }
  50. return out;
  51. } // _invoke
  52. // Type-specific CORBA::Object operations
  53. private static String[] __ids = {
  54. "IDL:PortableActivationIDL/ORBProxy:1.0"};
  55. public String[] _ids ()
  56. {
  57. return (String[])__ids.clone ();
  58. }
  59. } // class _ORBProxyImplBase