01: package org.omg.PortableServer;
02:
03: /** stream-based skeleton class */
04:
05: public abstract class AdapterActivatorPOA extends
06: org.omg.PortableServer.Servant implements
07: org.omg.CORBA.portable.InvokeHandler,
08: org.omg.PortableServer.AdapterActivatorOperations {
09: static private final java.util.Hashtable m_opsHash = new java.util.Hashtable();
10: static {
11: m_opsHash.put("unknown_adapter", new java.lang.Integer(0));
12: }
13: private String[] ids = { "IDL:omg.org/PortableServer/AdapterActivator:1.0" };
14:
15: public org.omg.PortableServer.AdapterActivator _this () {
16: return org.omg.PortableServer.AdapterActivatorHelper
17: .narrow(_this _object());
18: }
19:
20: public org.omg.PortableServer.AdapterActivator _this (
21: org.omg.CORBA.ORB orb) {
22: return org.omg.PortableServer.AdapterActivatorHelper
23: .narrow(_this _object(orb));
24: }
25:
26: public org.omg.CORBA.portable.OutputStream _invoke(String method,
27: org.omg.CORBA.portable.InputStream _input,
28: org.omg.CORBA.portable.ResponseHandler handler)
29: throws org.omg.CORBA.SystemException {
30: org.omg.CORBA.portable.OutputStream _out = null;
31: // do something
32: org.omg.CORBA.portable.OutputStream out = null;
33: // quick lookup of operation
34: java.lang.Integer opsIndex = (java.lang.Integer) m_opsHash
35: .get(method);
36: if (null == opsIndex)
37: throw new org.omg.CORBA.BAD_OPERATION(method + " not found");
38: switch (opsIndex.intValue()) {
39: case 0: // unknown_adapter
40: {
41: org.omg.PortableServer.POA _arg0 = org.omg.PortableServer.POAHelper
42: .read(_input);
43: java.lang.String _arg1 = _input.read_string();
44: _out = handler.createReply();
45: _out.write_boolean(unknown_adapter(_arg0, _arg1));
46: break;
47: }
48: }
49: return out;
50: }
51:
52: public String[] _all_interfaces(org.omg.PortableServer.POA poa,
53: byte[] obj_id) {
54: return ids;
55: }
56: }
|