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. import java.rmi.Remote;
  9. /**
  10. * The <code>Skeleton</code> interface is used solely by the RMI
  11. * implementation.
  12. *
  13. * <p> Every version 1.1 (and version 1.1 compatible skeletons generated in
  14. * 1.2 using <code>rmic -vcompat</code>) skeleton class generated by the rmic
  15. * stub compiler implements this interface. A skeleton for a remote object is
  16. * a server-side entity that dispatches calls to the actual remote object
  17. * implementation.
  18. *
  19. * @version 1.19, 05/18/04
  20. * @author Ann Wollrath
  21. * @since JDK1.1
  22. * @deprecated no replacement. Skeletons are no longer required for remote
  23. * method calls in the Java 2 platform v1.2 and greater.
  24. */
  25. @Deprecated
  26. public interface Skeleton {
  27. /**
  28. * Unmarshals arguments, calls the actual remote object implementation,
  29. * and marshals the return value or any exception.
  30. *
  31. * @param obj remote implementation to dispatch call to
  32. * @param theCall object representing remote call
  33. * @param opnum operation number
  34. * @param hash stub/skeleton interface hash
  35. * @exception java.lang.Exception if a general exception occurs.
  36. * @since JDK1.1
  37. * @deprecated no replacement
  38. */
  39. @Deprecated
  40. void dispatch(Remote obj, RemoteCall theCall, int opnum, long hash)
  41. throws Exception;
  42. /**
  43. * Returns the operations supported by the skeleton.
  44. * @return operations supported by skeleton
  45. * @since JDK1.1
  46. * @deprecated no replacement
  47. */
  48. @Deprecated
  49. Operation[] getOperations();
  50. }