KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > java > rmi > server > Skeleton


1 /*
2  * @(#)Skeleton.java 1.19 04/05/18
3  *
4  * Copyright 2004 Sun Microsystems, Inc. All rights reserved.
5  * SUN PROPRIETARY/CONFIDENTIAL. Use is subject to license terms.
6  */

7 package java.rmi.server;
8
9 import java.rmi.Remote JavaDoc;
10
11 /**
12  * The <code>Skeleton</code> interface is used solely by the RMI
13  * implementation.
14  *
15  * <p> Every version 1.1 (and version 1.1 compatible skeletons generated in
16  * 1.2 using <code>rmic -vcompat</code>) skeleton class generated by the rmic
17  * stub compiler implements this interface. A skeleton for a remote object is
18  * a server-side entity that dispatches calls to the actual remote object
19  * implementation.
20  *
21  * @version 1.19, 05/18/04
22  * @author Ann Wollrath
23  * @since JDK1.1
24  * @deprecated no replacement. Skeletons are no longer required for remote
25  * method calls in the Java 2 platform v1.2 and greater.
26  */

27 @Deprecated JavaDoc
28 public interface Skeleton {
29     /**
30      * Unmarshals arguments, calls the actual remote object implementation,
31      * and marshals the return value or any exception.
32      *
33      * @param obj remote implementation to dispatch call to
34      * @param theCall object representing remote call
35      * @param opnum operation number
36      * @param hash stub/skeleton interface hash
37      * @exception java.lang.Exception if a general exception occurs.
38      * @since JDK1.1
39      * @deprecated no replacement
40      */

41     @Deprecated JavaDoc
42     void dispatch(Remote JavaDoc obj, RemoteCall JavaDoc theCall, int opnum, long hash)
43     throws Exception JavaDoc;
44
45     /**
46      * Returns the operations supported by the skeleton.
47      * @return operations supported by skeleton
48      * @since JDK1.1
49      * @deprecated no replacement
50      */

51     @Deprecated JavaDoc
52     Operation JavaDoc[] getOperations();
53 }
54
Popular Tags