KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > com > sun > corba > se > PortableActivationIDL > _ORBProxyStub


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 ../../../../src/share/classes/com/sun/corba/se/PortableActivationIDL/activation.idl
8 * Saturday, February 9, 2008 2:04:41 AM PST
9 */

10
11
12 /** ORB callback interface, passed to Activator in registerORB method.
13     */

14 public class _ORBProxyStub extends org.omg.CORBA.portable.ObjectImpl JavaDoc 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 JavaDoc[] name)
25   {
26             org.omg.CORBA.portable.InputStream JavaDoc $in = null;
27             try {
28                 org.omg.CORBA.portable.OutputStream JavaDoc $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 JavaDoc $ex) {
34                 $in = $ex.getInputStream ();
35                 String JavaDoc _id = $ex.getId ();
36                 throw new org.omg.CORBA.MARSHAL JavaDoc (_id);
37             } catch (org.omg.CORBA.portable.RemarshalException JavaDoc $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 JavaDoc[] __ids = {
46     "IDL:PortableActivationIDL/ORBProxy:1.0"};
47
48   public String JavaDoc[] _ids ()
49   {
50     return (String JavaDoc[])__ids.clone ();
51   }
52
53   private void readObject (java.io.ObjectInputStream JavaDoc s) throws java.io.IOException JavaDoc
54   {
55      String JavaDoc str = s.readUTF ();
56      String JavaDoc[] args = null;
57      java.util.Properties JavaDoc props = null;
58      org.omg.CORBA.Object JavaDoc obj = org.omg.CORBA.ORB.init (args, props).string_to_object (str);
59      org.omg.CORBA.portable.Delegate JavaDoc delegate = ((org.omg.CORBA.portable.ObjectImpl JavaDoc) obj)._get_delegate ();
60      _set_delegate (delegate);
61   }
62
63   private void writeObject (java.io.ObjectOutputStream JavaDoc s) throws java.io.IOException JavaDoc
64   {
65      String JavaDoc[] args = null;
66      java.util.Properties JavaDoc props = null;
67      String JavaDoc str = org.omg.CORBA.ORB.init (args, props).object_to_string (this);
68      s.writeUTF (str);
69   }
70 } // class _ORBProxyStub
71
Popular Tags