1. /*
  2. * @(#)DatagramSocketImplFactory.java 1.9 03/12/19
  3. *
  4. * Copyright 2004 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 datagram socket implementations. It
  10. * is used by the classes <code>DatagramSocket</code> to create actual socket
  11. * implementations.
  12. *
  13. * @author Yingxian Wang
  14. * @version %I %E
  15. * @see java.net.DatagramSocket
  16. * @since 1.3
  17. */
  18. public
  19. interface DatagramSocketImplFactory {
  20. /**
  21. * Creates a new <code>DatagramSocketImpl</code> instance.
  22. *
  23. * @return a new instance of <code>DatagramSocketImpl</code>.
  24. * @see java.net.DatagramSocketImpl
  25. */
  26. DatagramSocketImpl createDatagramSocketImpl();
  27. }