1. /*
  2. * @(#)SocketImplFactory.java 1.15 00/02/02
  3. *
  4. * Copyright 1995-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.net;
  11. /**
  12. * This interface defines a factory for socket implementations. It
  13. * is used by the classes <code>Socket</code> and
  14. * <code>ServerSocket</code> to create actual socket
  15. * implementations.
  16. *
  17. * @author Arthur van Hoff
  18. * @version 1.15, 02/02/00
  19. * @see java.net.Socket
  20. * @see java.net.ServerSocket
  21. * @since JDK1.0
  22. */
  23. public
  24. interface SocketImplFactory {
  25. /**
  26. * Creates a new <code>SocketImpl</code> instance.
  27. *
  28. * @return a new instance of <code>SocketImpl</code>.
  29. * @see java.net.SocketImpl
  30. */
  31. SocketImpl createSocketImpl();
  32. }