summaryrefslogtreecommitdiff
path: root/tools/gnu/classpath/tools/rmi/rmic/templates/Stub_12.jav
blob: 1c55a059799019be12d42ba023450571c0f8e046 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
package #package;

#imports
import java.lang.reflect.Method;
import java.rmi.server.RemoteRef;
import java.rmi.server.RemoteStub;
import java.rmi.UnexpectedException;

/**
 * This class delegates its method calls to the remote RMI object, referenced
 * by {@link RemoteRef}. 
 *
 * It is normally generated with rmic.
 */
public final class #name_Stub 
    extends RemoteStub
    implements #interfaces
{
    /**
     * Use serialVersionUID for interoperability 
     */
    private static final long serialVersionUID = 2;
    
    /**
     * The explaining message for {@ling UnexpectedException}.
     */
    private static final String exception_message = 
      "undeclared checked exception";

     /* All remote methods, invoked by this stub: */
#stub_method_declarations
    #zeroSizeObjecArray
    static
      {
        #zeroSizeClassArray      
        try 
          {
#stub_method_initializations
          }
        catch (NoSuchMethodException nex)
          {
             NoSuchMethodError err = new NoSuchMethodError(
               "#name_Stub class initialization failed");
             err.initCause(nex);
             throw err;
          }  
      }
    
    /**
     * Create the instance for _#name_Stub that forwards method calls to the
     * remote object.
     *
     * @para the reference to the remote object.
     */
    public #name_Stub(RemoteRef reference) 
    {
       super(reference);
    }    
    
    /* Methods */    
#stub_methods    
}