J. Duke | 319a3b9 | 2007-12-01 00:00:00 +0000 | [diff] [blame^] | 1 | /* |
| 2 | * Copyright 2003 Sun Microsystems, Inc. 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 Sun Microsystems, Inc., 4150 Network Circle, Santa Clara, |
| 20 | * CA 95054 USA or visit www.sun.com if you need additional information or |
| 21 | * have any questions. |
| 22 | */ |
| 23 | |
| 24 | // Stub class generated by rmic, do not edit. |
| 25 | // Contents subject to change without notice. |
| 26 | |
| 27 | public final class UseDynamicProxies_Stub |
| 28 | extends java.rmi.server.RemoteStub |
| 29 | implements RemoteInterface |
| 30 | { |
| 31 | private static final long serialVersionUID = 2; |
| 32 | |
| 33 | private static java.lang.reflect.Method $method_passInt_0; |
| 34 | private static java.lang.reflect.Method $method_passObject_1; |
| 35 | private static java.lang.reflect.Method $method_passString_2; |
| 36 | |
| 37 | static { |
| 38 | try { |
| 39 | $method_passInt_0 = RemoteInterface.class.getMethod("passInt", new java.lang.Class[] {int.class}); |
| 40 | $method_passObject_1 = RemoteInterface.class.getMethod("passObject", new java.lang.Class[] {java.lang.Object.class}); |
| 41 | $method_passString_2 = RemoteInterface.class.getMethod("passString", new java.lang.Class[] {java.lang.String.class}); |
| 42 | } catch (java.lang.NoSuchMethodException e) { |
| 43 | throw new java.lang.NoSuchMethodError( |
| 44 | "stub class initialization failed"); |
| 45 | } |
| 46 | } |
| 47 | |
| 48 | // constructors |
| 49 | public UseDynamicProxies_Stub(java.rmi.server.RemoteRef ref) { |
| 50 | super(ref); |
| 51 | } |
| 52 | |
| 53 | // methods from remote interfaces |
| 54 | |
| 55 | // implementation of passInt(int) |
| 56 | public int passInt(int $param_int_1) |
| 57 | throws java.io.IOException |
| 58 | { |
| 59 | try { |
| 60 | Object $result = ref.invoke(this, $method_passInt_0, new java.lang.Object[] {new java.lang.Integer($param_int_1)}, 8655249712495061761L); |
| 61 | return ((java.lang.Integer) $result).intValue(); |
| 62 | } catch (java.lang.RuntimeException e) { |
| 63 | throw e; |
| 64 | } catch (java.io.IOException e) { |
| 65 | throw e; |
| 66 | } catch (java.lang.Exception e) { |
| 67 | throw new java.rmi.UnexpectedException("undeclared checked exception", e); |
| 68 | } |
| 69 | } |
| 70 | |
| 71 | // implementation of passObject(Object) |
| 72 | public java.lang.Object passObject(java.lang.Object $param_Object_1) |
| 73 | throws java.io.IOException |
| 74 | { |
| 75 | try { |
| 76 | Object $result = ref.invoke(this, $method_passObject_1, new java.lang.Object[] {$param_Object_1}, 3074202549763602823L); |
| 77 | return ((java.lang.Object) $result); |
| 78 | } catch (java.lang.RuntimeException e) { |
| 79 | throw e; |
| 80 | } catch (java.io.IOException e) { |
| 81 | throw e; |
| 82 | } catch (java.lang.Exception e) { |
| 83 | throw new java.rmi.UnexpectedException("undeclared checked exception", e); |
| 84 | } |
| 85 | } |
| 86 | |
| 87 | // implementation of passString(String) |
| 88 | public java.lang.String passString(java.lang.String $param_String_1) |
| 89 | throws java.io.IOException |
| 90 | { |
| 91 | try { |
| 92 | Object $result = ref.invoke(this, $method_passString_2, new java.lang.Object[] {$param_String_1}, 6627880292288702000L); |
| 93 | return ((java.lang.String) $result); |
| 94 | } catch (java.lang.RuntimeException e) { |
| 95 | throw e; |
| 96 | } catch (java.io.IOException e) { |
| 97 | throw e; |
| 98 | } catch (java.lang.Exception e) { |
| 99 | throw new java.rmi.UnexpectedException("undeclared checked exception", e); |
| 100 | } |
| 101 | } |
| 102 | } |