
package uk.co.wingpath.io;

import java.io.*;

/**
* Interface for creating a service on a connection.
*/

public interface ServiceFactory
{
    /**
    * Creates a {@link Service} that will provide a service on the supplied
    * connection.
    * <p>The Service will normally use a loop to receive requests from the
    * connection and send responses to the connection.
    * @param connection the connection on which the service is to be
    * provided.
    */
    Service createService (Connection connection);
}

