KickJava   Java API By Example, From Geeks To Geeks.

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


1 package com.sun.corba.se.PortableActivationIDL;
2
3
4 /**
5 * com/sun/corba/se/PortableActivationIDL/_ORBProxyImplBase.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 abstract class _ORBProxyImplBase extends org.omg.CORBA.portable.ObjectImpl JavaDoc
15                 implements com.sun.corba.se.PortableActivationIDL.ORBProxy, org.omg.CORBA.portable.InvokeHandler JavaDoc
16 {
17
18   // Constructors
19
public _ORBProxyImplBase ()
20   {
21   }
22
23   private static java.util.Hashtable JavaDoc _methods = new java.util.Hashtable JavaDoc ();
24   static
25   {
26     _methods.put ("activate_adapter", new java.lang.Integer JavaDoc (0));
27   }
28
29   public org.omg.CORBA.portable.OutputStream JavaDoc _invoke (String JavaDoc $method,
30                                 org.omg.CORBA.portable.InputStream JavaDoc in,
31                                 org.omg.CORBA.portable.ResponseHandler JavaDoc $rh)
32   {
33     org.omg.CORBA.portable.OutputStream JavaDoc out = null;
34     java.lang.Integer JavaDoc __method = (java.lang.Integer JavaDoc)_methods.get ($method);
35     if (__method == null)
36       throw new org.omg.CORBA.BAD_OPERATION JavaDoc (0, org.omg.CORBA.CompletionStatus.COMPLETED_MAYBE);
37
38     switch (__method.intValue ())
39     {
40
41   /** Method used to cause ORB to activate the named adapter, if possible.
42     * This will cause the named POA to register itself with the activator as
43     * a side effect. This should always happen before this call can complete.
44     * This method returns true if adapter activation succeeded, otherwise it
45     * returns false.
46     */

47        case 0: // PortableActivationIDL/ORBProxy/activate_adapter
48
{
49          String JavaDoc name[] = org.omg.PortableInterceptor.AdapterNameHelper.read (in);
50          boolean $result = false;
51          $result = this.activate_adapter (name);
52          out = $rh.createReply();
53          out.write_boolean ($result);
54          break;
55        }
56
57        default:
58          throw new org.omg.CORBA.BAD_OPERATION JavaDoc (0, org.omg.CORBA.CompletionStatus.COMPLETED_MAYBE);
59     }
60
61     return out;
62   } // _invoke
63

64   // Type-specific CORBA::Object operations
65
private static String JavaDoc[] __ids = {
66     "IDL:PortableActivationIDL/ORBProxy:1.0"};
67
68   public String JavaDoc[] _ids ()
69   {
70     return (String JavaDoc[])__ids.clone ();
71   }
72
73
74 } // class _ORBProxyImplBase
75
Popular Tags