1/* 2 * Copyright (c) 2016, Oracle and/or its affiliates. All rights reserved. 3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. 4 * 5 * This code is free software; you can redistribute it and/or modify it 6 * under the terms of the GNU General Public License version 2 only, as 7 * published by the Free Software Foundation. 8 * 9 * This code is distributed in the hope that it will be useful, but WITHOUT 10 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or 11 * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License 12 * version 2 for more details (a copy is included in the LICENSE file that 13 * accompanied this code). 14 * 15 * You should have received a copy of the GNU General Public License version 16 * 2 along with this work; if not, write to the Free Software Foundation, 17 * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. 18 * 19 * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA 20 * or visit www.oracle.com if you need additional information or have any 21 * questions. 22 */ 23 24// Tie class generated by rmic, do not edit. 25// Contents subject to change without notice. 26 27import java.io.Serializable; 28import java.rmi.Remote; 29import java.rmi.RemoteException; 30import javax.rmi.CORBA.Tie; 31import javax.rmi.CORBA.Util; 32import org.omg.CORBA.BAD_OPERATION; 33import org.omg.CORBA.ORB; 34import org.omg.CORBA.SystemException; 35import org.omg.CORBA.portable.InputStream; 36import org.omg.CORBA.portable.OutputStream; 37import org.omg.CORBA.portable.ResponseHandler; 38import org.omg.CORBA.portable.UnknownException; 39import org.omg.CORBA_2_3.portable.ObjectImpl; 40 41 42public class _HelloImpl_Tie extends ObjectImpl implements Tie { 43 44 volatile private HelloImpl target = null; 45 46 private static final String[] _type_ids = { 47 "RMI:HelloInterface:0000000000000000" 48 }; 49 50 public void setTarget(Remote target) { 51 this.target = (HelloImpl) target; 52 } 53 54 public Remote getTarget() { 55 return target; 56 } 57 58 public org.omg.CORBA.Object thisObject() { 59 return this; 60 } 61 62 public void deactivate() { 63 _orb().disconnect(this); 64 _set_delegate(null); 65 target = null; 66 } 67 68 public ORB orb() { 69 return _orb(); 70 } 71 72 public void orb(ORB orb) { 73 orb.connect(this); 74 } 75 76 public String[] _ids() { 77 return (String[]) _type_ids.clone(); 78 } 79 80 public OutputStream _invoke(String method, InputStream _in, ResponseHandler reply) throws SystemException { 81 try { 82 HelloImpl target = this.target; 83 if (target == null) { 84 throw new java.io.IOException(); 85 } 86 org.omg.CORBA_2_3.portable.InputStream in = 87 (org.omg.CORBA_2_3.portable.InputStream) _in; 88 if (method.equals("sayHelloWithTest3")) { 89 Test3 arg0 = (Test3) in.read_value(Test3.class); 90 Test3 result = target.sayHelloWithTest3(arg0); 91 org.omg.CORBA_2_3.portable.OutputStream out = 92 (org.omg.CORBA_2_3.portable.OutputStream) reply.createReply(); 93 out.write_value(result,Test3.class); 94 return out; 95 } 96 throw new BAD_OPERATION(); 97 } catch (SystemException ex) { 98 throw ex; 99 } catch (Throwable ex) { 100 throw new UnknownException(ex); 101 } 102 } 103} 104