package no.divvun.Analyzer.Client;

/**
 * Factory class for constructing classes implementing the DivvunBasicServices
 * -interace.
 * @author tomi
 */
public class DivvunRequestManager {
	public DivvunRequestManager () {}
	
	/**
	 * Creates a new instance of an object implementing the DivvunBasicServices -interface.
	 * @param listener Listener of the request manager.
	 * @param serverAddress Hostname of the Divvun server.
	 * @param serverPort Port used by the Divvun server.
	 * @return New instance of an object implementing the DivvunBasicServices -interface.
	 * @throws DivvunServerConnectionException
	 */
	public static DivvunBasicServices newDivvunBasicServices
		(DivvunRequestListener listener, String serverAddress, int serverPort)
		throws DivvunServerConnectionException
	{
		return new DivvunBasicServicesImplementation(listener, serverAddress, serverPort);
	}
}
