1
2
3
4 package nl.tudelft.simulation.naming.listener;
5
6 public final class RemoteContextListener_Stub extends
7 java.rmi.server.RemoteStub implements
8 nl.tudelft.simulation.naming.listener.RemoteContextListenerInterface,
9 java.rmi.Remote
10 {
11 private static final java.rmi.server.Operation[] operations = {
12 new java.rmi.server.Operation(
13 "void namingExceptionThrown(javax.naming.event.NamingExceptionEvent)"),
14 new java.rmi.server.Operation(
15 "void objectAdded(javax.naming.event.NamingEvent)"),
16 new java.rmi.server.Operation(
17 "void objectChanged(javax.naming.event.NamingEvent)"),
18 new java.rmi.server.Operation(
19 "void objectRemoved(javax.naming.event.NamingEvent)"),
20 new java.rmi.server.Operation(
21 "void objectRenamed(javax.naming.event.NamingEvent)")};
22
23 private static final long interfaceHash = 1330269890773764833L;
24
25 private static final long serialVersionUID = 2;
26
27 private static boolean useNewInvoke;
28
29 private static java.lang.reflect.Method $method_namingExceptionThrown_0;
30
31 private static java.lang.reflect.Method $method_objectAdded_1;
32
33 private static java.lang.reflect.Method $method_objectChanged_2;
34
35 private static java.lang.reflect.Method $method_objectRemoved_3;
36
37 private static java.lang.reflect.Method $method_objectRenamed_4;
38
39 static
40 {
41 try
42 {
43 java.rmi.server.RemoteRef.class.getMethod("invoke",
44 new java.lang.Class[]{java.rmi.Remote.class,
45 java.lang.reflect.Method.class,
46 java.lang.Object[].class, long.class});
47 useNewInvoke = true;
48 $method_namingExceptionThrown_0 = nl.tudelft.simulation.naming.listener.RemoteContextListenerInterface.class
49 .getMethod(
50 "namingExceptionThrown",
51 new java.lang.Class[]{javax.naming.event.NamingExceptionEvent.class});
52 $method_objectAdded_1 = nl.tudelft.simulation.naming.listener.RemoteContextListenerInterface.class
53 .getMethod(
54 "objectAdded",
55 new java.lang.Class[]{javax.naming.event.NamingEvent.class});
56 $method_objectChanged_2 = nl.tudelft.simulation.naming.listener.RemoteContextListenerInterface.class
57 .getMethod(
58 "objectChanged",
59 new java.lang.Class[]{javax.naming.event.NamingEvent.class});
60 $method_objectRemoved_3 = nl.tudelft.simulation.naming.listener.RemoteContextListenerInterface.class
61 .getMethod(
62 "objectRemoved",
63 new java.lang.Class[]{javax.naming.event.NamingEvent.class});
64 $method_objectRenamed_4 = nl.tudelft.simulation.naming.listener.RemoteContextListenerInterface.class
65 .getMethod(
66 "objectRenamed",
67 new java.lang.Class[]{javax.naming.event.NamingEvent.class});
68 } catch (java.lang.NoSuchMethodException e)
69 {
70 useNewInvoke = false;
71 }
72 }
73
74
75 public RemoteContextListener_Stub()
76 {
77 super();
78 }
79
80 public RemoteContextListener_Stub(java.rmi.server.RemoteRef ref)
81 {
82 super(ref);
83 }
84
85
86
87
88 public void namingExceptionThrown(
89 javax.naming.event.NamingExceptionEvent $param_NamingExceptionEvent_1)
90 throws java.rmi.RemoteException
91 {
92 try
93 {
94 if (useNewInvoke)
95 {
96 ref.invoke(this, $method_namingExceptionThrown_0,
97 new java.lang.Object[]{$param_NamingExceptionEvent_1},
98 -7387742496009370008L);
99 } else
100 {
101 java.rmi.server.RemoteCall call = ref.newCall(
102 (java.rmi.server.RemoteObject) this, operations, 0,
103 interfaceHash);
104 try
105 {
106 java.io.ObjectOutput out = call.getOutputStream();
107 out.writeObject($param_NamingExceptionEvent_1);
108 } catch (java.io.IOException e)
109 {
110 throw new java.rmi.MarshalException(
111 "error marshalling arguments", e);
112 }
113 ref.invoke(call);
114 ref.done(call);
115 }
116 } catch (java.lang.RuntimeException e)
117 {
118 throw e;
119 } catch (java.rmi.RemoteException e)
120 {
121 throw e;
122 } catch (java.lang.Exception e)
123 {
124 throw new java.rmi.UnexpectedException(
125 "undeclared checked exception", e);
126 }
127 }
128
129
130 public void objectAdded(javax.naming.event.NamingEvent $param_NamingEvent_1)
131 throws java.rmi.RemoteException
132 {
133 try
134 {
135 if (useNewInvoke)
136 {
137 ref.invoke(this, $method_objectAdded_1,
138 new java.lang.Object[]{$param_NamingEvent_1},
139 7788981834081827903L);
140 } else
141 {
142 java.rmi.server.RemoteCall call = ref.newCall(
143 (java.rmi.server.RemoteObject) this, operations, 1,
144 interfaceHash);
145 try
146 {
147 java.io.ObjectOutput out = call.getOutputStream();
148 out.writeObject($param_NamingEvent_1);
149 } catch (java.io.IOException e)
150 {
151 throw new java.rmi.MarshalException(
152 "error marshalling arguments", e);
153 }
154 ref.invoke(call);
155 ref.done(call);
156 }
157 } catch (java.lang.RuntimeException e)
158 {
159 throw e;
160 } catch (java.rmi.RemoteException e)
161 {
162 throw e;
163 } catch (java.lang.Exception e)
164 {
165 throw new java.rmi.UnexpectedException(
166 "undeclared checked exception", e);
167 }
168 }
169
170
171 public void objectChanged(
172 javax.naming.event.NamingEvent $param_NamingEvent_1)
173 throws java.rmi.RemoteException
174 {
175 try
176 {
177 if (useNewInvoke)
178 {
179 ref.invoke(this, $method_objectChanged_2,
180 new java.lang.Object[]{$param_NamingEvent_1},
181 385728719389957123L);
182 } else
183 {
184 java.rmi.server.RemoteCall call = ref.newCall(
185 (java.rmi.server.RemoteObject) this, operations, 2,
186 interfaceHash);
187 try
188 {
189 java.io.ObjectOutput out = call.getOutputStream();
190 out.writeObject($param_NamingEvent_1);
191 } catch (java.io.IOException e)
192 {
193 throw new java.rmi.MarshalException(
194 "error marshalling arguments", e);
195 }
196 ref.invoke(call);
197 ref.done(call);
198 }
199 } catch (java.lang.RuntimeException e)
200 {
201 throw e;
202 } catch (java.rmi.RemoteException e)
203 {
204 throw e;
205 } catch (java.lang.Exception e)
206 {
207 throw new java.rmi.UnexpectedException(
208 "undeclared checked exception", e);
209 }
210 }
211
212
213 public void objectRemoved(
214 javax.naming.event.NamingEvent $param_NamingEvent_1)
215 throws java.rmi.RemoteException
216 {
217 try
218 {
219 if (useNewInvoke)
220 {
221 ref.invoke(this, $method_objectRemoved_3,
222 new java.lang.Object[]{$param_NamingEvent_1},
223 5487915857061689211L);
224 } else
225 {
226 java.rmi.server.RemoteCall call = ref.newCall(
227 (java.rmi.server.RemoteObject) this, operations, 3,
228 interfaceHash);
229 try
230 {
231 java.io.ObjectOutput out = call.getOutputStream();
232 out.writeObject($param_NamingEvent_1);
233 } catch (java.io.IOException e)
234 {
235 throw new java.rmi.MarshalException(
236 "error marshalling arguments", e);
237 }
238 ref.invoke(call);
239 ref.done(call);
240 }
241 } catch (java.lang.RuntimeException e)
242 {
243 throw e;
244 } catch (java.rmi.RemoteException e)
245 {
246 throw e;
247 } catch (java.lang.Exception e)
248 {
249 throw new java.rmi.UnexpectedException(
250 "undeclared checked exception", e);
251 }
252 }
253
254
255 public void objectRenamed(
256 javax.naming.event.NamingEvent $param_NamingEvent_1)
257 throws java.rmi.RemoteException
258 {
259 try
260 {
261 if (useNewInvoke)
262 {
263 ref.invoke(this, $method_objectRenamed_4,
264 new java.lang.Object[]{$param_NamingEvent_1},
265 -4465494126274515993L);
266 } else
267 {
268 java.rmi.server.RemoteCall call = ref.newCall(
269 (java.rmi.server.RemoteObject) this, operations, 4,
270 interfaceHash);
271 try
272 {
273 java.io.ObjectOutput out = call.getOutputStream();
274 out.writeObject($param_NamingEvent_1);
275 } catch (java.io.IOException e)
276 {
277 throw new java.rmi.MarshalException(
278 "error marshalling arguments", e);
279 }
280 ref.invoke(call);
281 ref.done(call);
282 }
283 } catch (java.lang.RuntimeException e)
284 {
285 throw e;
286 } catch (java.rmi.RemoteException e)
287 {
288 throw e;
289 } catch (java.lang.Exception e)
290 {
291 throw new java.rmi.UnexpectedException(
292 "undeclared checked exception", e);
293 }
294 }
295 }