1 package org.omg.PortableServer; 2 3 4 10 11 12 30 public class _ServantLocatorStub extends org.omg.CORBA.portable.ObjectImpl implements org.omg.PortableServer.ServantLocator 31 { 32 final public static java.lang.Class _opsClass = ServantLocatorOperations .class; 33 34 35 36 55 public org.omg.PortableServer.Servant preinvoke (byte[] oid, org.omg.PortableServer.POA adapter, String operation, org.omg.PortableServer.ServantLocatorPackage.CookieHolder the_cookie) throws org.omg.PortableServer.ForwardRequest 56 { 57 org.omg.CORBA.portable.ServantObject $so = _servant_preinvoke ("preinvoke", _opsClass); 58 ServantLocatorOperations $self = (ServantLocatorOperations ) $so.servant; 59 60 try { 61 return $self.preinvoke (oid, adapter, operation, the_cookie); 62 } finally { 63 _servant_postinvoke ($so); 64 } 65 } 67 68 80 public void postinvoke (byte[] oid, org.omg.PortableServer.POA adapter, String operation, java.lang.Object the_cookie, org.omg.PortableServer.Servant the_servant) 81 { 82 org.omg.CORBA.portable.ServantObject $so = _servant_preinvoke ("postinvoke", _opsClass); 83 ServantLocatorOperations $self = (ServantLocatorOperations ) $so.servant; 84 85 try { 86 $self.postinvoke (oid, adapter, operation, the_cookie, the_servant); 87 } finally { 88 _servant_postinvoke ($so); 89 } 90 } 92 private static String [] __ids = { 94 "IDL:omg.org/PortableServer/ServantLocator:1.0", 95 "IDL:omg.org/PortableServer/ServantManager:1.0"}; 96 97 public String [] _ids () 98 { 99 return (String [])__ids.clone (); 100 } 101 102 private void readObject (java.io.ObjectInputStream s) throws java.io.IOException 103 { 104 String str = s.readUTF (); 105 String [] args = null; 106 java.util.Properties props = null; 107 org.omg.CORBA.Object obj = org.omg.CORBA.ORB.init (args, props).string_to_object (str); 108 org.omg.CORBA.portable.Delegate delegate = ((org.omg.CORBA.portable.ObjectImpl ) obj)._get_delegate (); 109 _set_delegate (delegate); 110 } 111 112 private void writeObject (java.io.ObjectOutputStream s) throws java.io.IOException 113 { 114 String [] args = null; 115 java.util.Properties props = null; 116 String str = org.omg.CORBA.ORB.init (args, props).object_to_string (this); 117 s.writeUTF (str); 118 } 119 } | Popular Tags |