4 import java.lang.reflect.Method;
5 import java.rmi.server.RemoteRef;
6 import java.rmi.server.RemoteStub;
7 import java.rmi.UnexpectedException;
10 * This class delegates its method calls to the remote RMI object, referenced
11 * by {@link RemoteRef}.
13 * It is normally generated with rmic.
15 public final class #name_Stub
17 implements #interfaces
20 * Use serialVersionUID for interoperability
22 private static final long serialVersionUID = 2;
25 * The explaining message for {@ling UnexpectedException}.
27 private static final String exception_message =
28 "undeclared checked exception";
30 /* All remote methods, invoked by this stub: */
31 #stub_method_declarations
38 #stub_method_initializations
40 catch (NoSuchMethodException nex)
42 NoSuchMethodError err = new NoSuchMethodError(
43 "#name_Stub class initialization failed");
50 * Create the instance for _#name_Stub that forwards method calls to the
53 * @para the reference to the remote object.
55 public #name_Stub(RemoteRef reference)