1 package org.omg.PortableServer; 2 3 4 5 public abstract class AdapterActivatorPOA 6 extends org.omg.PortableServer.Servant 7 implements org.omg.CORBA.portable.InvokeHandler , org.omg.PortableServer.AdapterActivatorOperations 8 { 9 static private final java.util.Hashtable m_opsHash = new java.util.Hashtable (); 10 static 11 { 12 m_opsHash.put ( "unknown_adapter", new java.lang.Integer (0)); 13 } 14 private String [] ids = {"IDL:omg.org/PortableServer/AdapterActivator:1.0"}; 15 public org.omg.PortableServer.AdapterActivator _this() 16 { 17 return org.omg.PortableServer.AdapterActivatorHelper.narrow(_this_object()); 18 } 19 public org.omg.PortableServer.AdapterActivator _this(org.omg.CORBA.ORB orb) 20 { 21 return org.omg.PortableServer.AdapterActivatorHelper.narrow(_this_object(orb)); 22 } 23 public org.omg.CORBA.portable.OutputStream _invoke(String method, org.omg.CORBA.portable.InputStream _input, org.omg.CORBA.portable.ResponseHandler handler) 24 throws org.omg.CORBA.SystemException 25 { 26 org.omg.CORBA.portable.OutputStream _out = null; 27 org.omg.CORBA.portable.OutputStream out = null; 29 java.lang.Integer opsIndex = (java.lang.Integer )m_opsHash.get ( method ); 31 if ( null == opsIndex ) 32 throw new org.omg.CORBA.BAD_OPERATION (method + " not found"); 33 switch ( opsIndex.intValue() ) 34 { 35 case 0: { 37 org.omg.PortableServer.POA _arg0=org.omg.PortableServer.POAHelper.read(_input); 38 java.lang.String _arg1=_input.read_string(); 39 _out = handler.createReply(); 40 _out.write_boolean(unknown_adapter(_arg0,_arg1)); 41 break; 42 } 43 } 44 return out; 45 } 46 47 public String [] _all_interfaces(org.omg.PortableServer.POA poa, byte[] obj_id) 48 { 49 return ids; 50 } 51 } 52 | Popular Tags |