1. package com.sun.corba.se.PortableActivationIDL;
  2. /**
  3. * com/sun/corba/se/PortableActivationIDL/_ORBProxyStub.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 class _ORBProxyStub extends org.omg.CORBA.portable.ObjectImpl implements com.sun.corba.se.PortableActivationIDL.ORBProxy
  11. {
  12. /** Method used to cause ORB to activate the named adapter, if possible.
  13. * This will cause the named POA to register itself with the activator as
  14. * a side effect. This should always happen before this call can complete.
  15. * This method returns true if adapter activation succeeded, otherwise it
  16. * returns false.
  17. */
  18. public boolean activate_adapter (String[] name)
  19. {
  20. org.omg.CORBA.portable.InputStream $in = null;
  21. try {
  22. org.omg.CORBA.portable.OutputStream $out = _request ("activate_adapter", true);
  23. org.omg.PortableInterceptor.AdapterNameHelper.write ($out, name);
  24. $in = _invoke ($out);
  25. boolean $result = $in.read_boolean ();
  26. return $result;
  27. } catch (org.omg.CORBA.portable.ApplicationException $ex) {
  28. $in = $ex.getInputStream ();
  29. String _id = $ex.getId ();
  30. throw new org.omg.CORBA.MARSHAL (_id);
  31. } catch (org.omg.CORBA.portable.RemarshalException $rm) {
  32. return activate_adapter (name );
  33. } finally {
  34. _releaseReply ($in);
  35. }
  36. } // activate_adapter
  37. // Type-specific CORBA::Object operations
  38. private static String[] __ids = {
  39. "IDL:PortableActivationIDL/ORBProxy:1.0"};
  40. public String[] _ids ()
  41. {
  42. return (String[])__ids.clone ();
  43. }
  44. private void readObject (java.io.ObjectInputStream s) throws java.io.IOException
  45. {
  46. String str = s.readUTF ();
  47. String[] args = null;
  48. java.util.Properties props = null;
  49. org.omg.CORBA.Object obj = org.omg.CORBA.ORB.init (args, props).string_to_object (str);
  50. org.omg.CORBA.portable.Delegate delegate = ((org.omg.CORBA.portable.ObjectImpl) obj)._get_delegate ();
  51. _set_delegate (delegate);
  52. }
  53. private void writeObject (java.io.ObjectOutputStream s) throws java.io.IOException
  54. {
  55. String[] args = null;
  56. java.util.Properties props = null;
  57. String str = org.omg.CORBA.ORB.init (args, props).object_to_string (this);
  58. s.writeUTF (str);
  59. }
  60. } // class _ORBProxyStub