J. Duke | 319a3b9 | 2007-12-01 00:00:00 +0000 | [diff] [blame^] | 1 | /* |
| 2 | * Copyright 1998-1999 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 ModifyDescriptor_Stub |
| 28 | extends java.rmi.server.RemoteStub |
| 29 | implements ActivateMe |
| 30 | { |
| 31 | private static final java.rmi.server.Operation[] operations = { |
| 32 | new java.rmi.server.Operation("java.rmi.activation.ActivationID getID()"), |
| 33 | new java.rmi.server.Operation("java.lang.String getMessage()"), |
| 34 | new java.rmi.server.Operation("java.lang.String getProperty(java.lang.String)"), |
| 35 | new java.rmi.server.Operation("void shutdown()") |
| 36 | }; |
| 37 | |
| 38 | private static final long interfaceHash = 7998207954486691383L; |
| 39 | |
| 40 | private static final long serialVersionUID = 2; |
| 41 | |
| 42 | private static boolean useNewInvoke; |
| 43 | private static java.lang.reflect.Method $method_getID_0; |
| 44 | private static java.lang.reflect.Method $method_getMessage_1; |
| 45 | private static java.lang.reflect.Method $method_getProperty_2; |
| 46 | private static java.lang.reflect.Method $method_shutdown_3; |
| 47 | |
| 48 | static { |
| 49 | try { |
| 50 | java.rmi.server.RemoteRef.class.getMethod("invoke", |
| 51 | new java.lang.Class[] { |
| 52 | java.rmi.Remote.class, |
| 53 | java.lang.reflect.Method.class, |
| 54 | java.lang.Object[].class, |
| 55 | long.class |
| 56 | }); |
| 57 | useNewInvoke = true; |
| 58 | $method_getID_0 = ActivateMe.class.getMethod("getID", new java.lang.Class[] {}); |
| 59 | $method_getMessage_1 = ActivateMe.class.getMethod("getMessage", new java.lang.Class[] {}); |
| 60 | $method_getProperty_2 = ActivateMe.class.getMethod("getProperty", new java.lang.Class[] {java.lang.String.class}); |
| 61 | $method_shutdown_3 = ActivateMe.class.getMethod("shutdown", new java.lang.Class[] {}); |
| 62 | } catch (java.lang.NoSuchMethodException e) { |
| 63 | useNewInvoke = false; |
| 64 | } |
| 65 | } |
| 66 | |
| 67 | // constructors |
| 68 | public ModifyDescriptor_Stub() { |
| 69 | super(); |
| 70 | } |
| 71 | public ModifyDescriptor_Stub(java.rmi.server.RemoteRef ref) { |
| 72 | super(ref); |
| 73 | } |
| 74 | |
| 75 | // methods from remote interfaces |
| 76 | |
| 77 | // implementation of getID() |
| 78 | public java.rmi.activation.ActivationID getID() |
| 79 | throws java.rmi.RemoteException |
| 80 | { |
| 81 | try { |
| 82 | if (useNewInvoke) { |
| 83 | Object $result = ref.invoke(this, $method_getID_0, null, -7795865521150345044L); |
| 84 | return ((java.rmi.activation.ActivationID) $result); |
| 85 | } else { |
| 86 | java.rmi.server.RemoteCall call = ref.newCall((java.rmi.server.RemoteObject) this, operations, 0, interfaceHash); |
| 87 | ref.invoke(call); |
| 88 | java.rmi.activation.ActivationID $result; |
| 89 | try { |
| 90 | java.io.ObjectInput in = call.getInputStream(); |
| 91 | $result = (java.rmi.activation.ActivationID) in.readObject(); |
| 92 | } catch (java.io.IOException e) { |
| 93 | throw new java.rmi.UnmarshalException("error unmarshalling return", e); |
| 94 | } catch (java.lang.ClassNotFoundException e) { |
| 95 | throw new java.rmi.UnmarshalException("error unmarshalling return", e); |
| 96 | } finally { |
| 97 | ref.done(call); |
| 98 | } |
| 99 | return $result; |
| 100 | } |
| 101 | } catch (java.lang.RuntimeException e) { |
| 102 | throw e; |
| 103 | } catch (java.rmi.RemoteException e) { |
| 104 | throw e; |
| 105 | } catch (java.lang.Exception e) { |
| 106 | throw new java.rmi.UnexpectedException("undeclared checked exception", e); |
| 107 | } |
| 108 | } |
| 109 | |
| 110 | // implementation of getMessage() |
| 111 | public java.lang.String getMessage() |
| 112 | throws java.rmi.RemoteException |
| 113 | { |
| 114 | try { |
| 115 | if (useNewInvoke) { |
| 116 | Object $result = ref.invoke(this, $method_getMessage_1, null, 5353407034680111516L); |
| 117 | return ((java.lang.String) $result); |
| 118 | } else { |
| 119 | java.rmi.server.RemoteCall call = ref.newCall((java.rmi.server.RemoteObject) this, operations, 1, interfaceHash); |
| 120 | ref.invoke(call); |
| 121 | java.lang.String $result; |
| 122 | try { |
| 123 | java.io.ObjectInput in = call.getInputStream(); |
| 124 | $result = (java.lang.String) in.readObject(); |
| 125 | } catch (java.io.IOException e) { |
| 126 | throw new java.rmi.UnmarshalException("error unmarshalling return", e); |
| 127 | } catch (java.lang.ClassNotFoundException e) { |
| 128 | throw new java.rmi.UnmarshalException("error unmarshalling return", e); |
| 129 | } finally { |
| 130 | ref.done(call); |
| 131 | } |
| 132 | return $result; |
| 133 | } |
| 134 | } catch (java.lang.RuntimeException e) { |
| 135 | throw e; |
| 136 | } catch (java.rmi.RemoteException e) { |
| 137 | throw e; |
| 138 | } catch (java.lang.Exception e) { |
| 139 | throw new java.rmi.UnexpectedException("undeclared checked exception", e); |
| 140 | } |
| 141 | } |
| 142 | |
| 143 | // implementation of getProperty(String) |
| 144 | public java.lang.String getProperty(java.lang.String $param_String_1) |
| 145 | throws java.rmi.RemoteException |
| 146 | { |
| 147 | try { |
| 148 | if (useNewInvoke) { |
| 149 | Object $result = ref.invoke(this, $method_getProperty_2, new java.lang.Object[] {$param_String_1}, 77249282285080913L); |
| 150 | return ((java.lang.String) $result); |
| 151 | } else { |
| 152 | java.rmi.server.RemoteCall call = ref.newCall((java.rmi.server.RemoteObject) this, operations, 2, interfaceHash); |
| 153 | try { |
| 154 | java.io.ObjectOutput out = call.getOutputStream(); |
| 155 | out.writeObject($param_String_1); |
| 156 | } catch (java.io.IOException e) { |
| 157 | throw new java.rmi.MarshalException("error marshalling arguments", e); |
| 158 | } |
| 159 | ref.invoke(call); |
| 160 | java.lang.String $result; |
| 161 | try { |
| 162 | java.io.ObjectInput in = call.getInputStream(); |
| 163 | $result = (java.lang.String) in.readObject(); |
| 164 | } catch (java.io.IOException e) { |
| 165 | throw new java.rmi.UnmarshalException("error unmarshalling return", e); |
| 166 | } catch (java.lang.ClassNotFoundException e) { |
| 167 | throw new java.rmi.UnmarshalException("error unmarshalling return", e); |
| 168 | } finally { |
| 169 | ref.done(call); |
| 170 | } |
| 171 | return $result; |
| 172 | } |
| 173 | } catch (java.lang.RuntimeException e) { |
| 174 | throw e; |
| 175 | } catch (java.rmi.RemoteException e) { |
| 176 | throw e; |
| 177 | } catch (java.lang.Exception e) { |
| 178 | throw new java.rmi.UnexpectedException("undeclared checked exception", e); |
| 179 | } |
| 180 | } |
| 181 | |
| 182 | // implementation of shutdown() |
| 183 | public void shutdown() |
| 184 | throws java.lang.Exception |
| 185 | { |
| 186 | if (useNewInvoke) { |
| 187 | ref.invoke(this, $method_shutdown_3, null, -7207851917985848402L); |
| 188 | } else { |
| 189 | java.rmi.server.RemoteCall call = ref.newCall((java.rmi.server.RemoteObject) this, operations, 3, interfaceHash); |
| 190 | ref.invoke(call); |
| 191 | ref.done(call); |
| 192 | } |
| 193 | } |
| 194 | } |