1. /*
  2. * @(#)Skeleton.java 1.10 01/11/29
  3. *
  4. * Copyright 2002 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.10, 11/29/01
  20. * @author Ann Wollrath
  21. * @since JDK1.1
  22. * @deprecated no replacement. Skeletons are no longer required for remote
  23. * method calls in JDK1.2 and greater.
  24. */
  25. public interface Skeleton {
  26. /**
  27. * Unmarshals arguments, calls the actual remote object implementation,
  28. * and marshals the return value or any exception.
  29. *
  30. * @exception java.lang.Exception if a general exception occurs.
  31. * @since JDK1.1
  32. * @deprecated no replacement
  33. */
  34. void dispatch(Remote obj, RemoteCall theCall, int opnum, long hash)
  35. throws Exception;
  36. /**
  37. * Returns the operations supported by the skeleton.
  38. * @since JDK1.1
  39. * @deprecated no replacement
  40. */
  41. Operation[] getOperations();
  42. }