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