1. /*
  2. * @(#)Skeleton.java 1.15 00/02/02
  3. *
  4. * Copyright 1996-2000 Sun Microsystems, Inc. All Rights Reserved.
  5. *
  6. * This software is the proprietary information of Sun Microsystems, Inc.
  7. * Use is subject to license terms.
  8. *
  9. */
  10. package java.rmi.server;
  11. import java.rmi.Remote;
  12. /**
  13. * The <code>Skeleton</code> interface is used solely by the RMI
  14. * implementation.
  15. *
  16. * <p> Every version 1.1 (and version 1.1 compatible skeletons generated in
  17. * 1.2 using <code>rmic -vcompat</code>) skeleton class generated by the rmic
  18. * stub compiler implements this interface. A skeleton for a remote object is
  19. * a server-side entity that dispatches calls to the actual remote object
  20. * implementation.
  21. *
  22. * @version 1.15, 02/02/00
  23. * @author Ann Wollrath
  24. * @since JDK1.1
  25. * @deprecated no replacement. Skeletons are no longer required for remote
  26. * method calls in the Java 2 platform v1.2 and greater.
  27. */
  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. void dispatch(Remote obj, RemoteCall theCall, int opnum, long hash)
  42. throws Exception;
  43. /**
  44. * Returns the operations supported by the skeleton.
  45. * @return operations supported by skeleton
  46. * @since JDK1.1
  47. * @deprecated no replacement
  48. */
  49. Operation[] getOperations();
  50. }