KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > sapia > ubik > rmi > examples > JdkFoo_Stub


1 // Stub class generated by rmic, do not edit.
2
// Contents subject to change without notice.
3
package org.sapia.ubik.rmi.examples;
4
5 public final class JdkFoo_Stub extends java.rmi.server.RemoteStub JavaDoc
6   implements org.sapia.ubik.rmi.examples.Foo, java.rmi.Remote JavaDoc {
7   private static final long serialVersionUID = 2;
8   private static java.lang.reflect.Method JavaDoc $method_getBar_0;
9
10   static {
11     try {
12       $method_getBar_0 = org.sapia.ubik.rmi.examples.Foo.class.getMethod("getBar",
13           new java.lang.Class JavaDoc[] { });
14     } catch (java.lang.NoSuchMethodException JavaDoc e) {
15       throw new java.lang.NoSuchMethodError JavaDoc("stub class initialization failed");
16     }
17   }
18
19   // constructors
20
public JdkFoo_Stub(java.rmi.server.RemoteRef JavaDoc ref) {
21     super(ref);
22   }
23
24   // methods from remote interfaces
25
// implementation of getBar()
26
public org.sapia.ubik.rmi.examples.Bar getBar()
27     throws java.rmi.RemoteException JavaDoc {
28     try {
29       Object JavaDoc $result = ref.invoke(this, $method_getBar_0, null,
30           -3009707282837911082L);
31
32       return ((org.sapia.ubik.rmi.examples.Bar) $result);
33     } catch (java.lang.RuntimeException JavaDoc e) {
34       throw e;
35     } catch (java.rmi.RemoteException JavaDoc e) {
36       throw e;
37     } catch (java.lang.Exception JavaDoc e) {
38       throw new java.rmi.UnexpectedException JavaDoc("undeclared checked exception", e);
39     }
40   }
41 }
42
Popular Tags