Advertisement
Guest User

Untitled

a guest
Apr 9th, 2020
178
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 2.87 KB | None | 0 0
  1. package com.sun.corba.se.PortableActivationIDL;
  2.  
  3.  
  4. /**
  5. * com/sun/corba/se/PortableActivationIDL/_ORBProxyStub.java .
  6. * Generated by the IDL-to-Java compiler (portable), version "3.2"
  7. * from c:/re/workspace/8-2-build-windows-amd64-cygwin/jdk8u221/13320/corba/src/share/classes/com/sun/corba/se/PortableActivationIDL/activation.idl
  8. * Thursday, July 4, 2019 4:41:44 AM PDT
  9. */
  10.  
  11.  
  12. /** ORB callback interface, passed to Activator in registerORB method.
  13.     */
  14. public class _ORBProxyStub extends org.omg.CORBA.portable.ObjectImpl implements com.sun.corba.se.PortableActivationIDL.ORBProxy
  15. {
  16.  
  17.  
  18.   /** Method used to cause ORB to activate the named adapter, if possible.
  19.     * This will cause the named POA to register itself with the activator as
  20.     * a side effect.  This should always happen before this call can complete.
  21.     * This method returns true if adapter activation succeeded, otherwise it
  22.     * returns false.
  23.     */
  24.   public boolean activate_adapter (String[] name)
  25.   {
  26.             org.omg.CORBA.portable.InputStream $in = null;
  27.             try {
  28.                 org.omg.CORBA.portable.OutputStream $out = _request ("activate_adapter", true);
  29.                 org.omg.PortableInterceptor.AdapterNameHelper.write ($out, name);
  30.                 $in = _invoke ($out);
  31.                 boolean $result = $in.read_boolean ();
  32.                 return $result;
  33.             } catch (org.omg.CORBA.portable.ApplicationException $ex) {
  34.                 $in = $ex.getInputStream ();
  35.                 String _id = $ex.getId ();
  36.                 throw new org.omg.CORBA.MARSHAL (_id);
  37.             } catch (org.omg.CORBA.portable.RemarshalException $rm) {
  38.                 return activate_adapter (name        );
  39.             } finally {
  40.                 _releaseReply ($in);
  41.             }
  42.   } // activate_adapter
  43.  
  44.   // Type-specific CORBA::Object operations
  45.   private static String[] __ids = {
  46.     "IDL:PortableActivationIDL/ORBProxy:1.0"};
  47.  
  48.   public String[] _ids ()
  49.   {
  50.     return (String[])__ids.clone ();
  51.   }
  52.  
  53.   private void readObject (java.io.ObjectInputStream s) throws java.io.IOException
  54.   {
  55.      String str = s.readUTF ();
  56.      String[] args = null;
  57.      java.util.Properties props = null;
  58.      org.omg.CORBA.ORB orb = org.omg.CORBA.ORB.init (args, props);
  59.    try {
  60.      org.omg.CORBA.Object obj = orb.string_to_object (str);
  61.      org.omg.CORBA.portable.Delegate delegate = ((org.omg.CORBA.portable.ObjectImpl) obj)._get_delegate ();
  62.      _set_delegate (delegate);
  63.    } finally {
  64.      orb.destroy() ;
  65.    }
  66.   }
  67.  
  68.   private void writeObject (java.io.ObjectOutputStream s) throws java.io.IOException
  69.   {
  70.      String[] args = null;
  71.      java.util.Properties props = null;
  72.      org.omg.CORBA.ORB orb = org.omg.CORBA.ORB.init (args, props);
  73.    try {
  74.      String str = orb.object_to_string (this);
  75.      s.writeUTF (str);
  76.    } finally {
  77.      orb.destroy() ;
  78.    }
  79.   }
  80. } // class _ORBProxyStub
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement