| 1 |
package org.astrogrid.samp.xmlrpc.internal; |
| 2 |
|
| 3 |
import java.io.IOException; |
| 4 |
import org.astrogrid.samp.xmlrpc.SampXmlRpcServer; |
| 5 |
import org.astrogrid.samp.xmlrpc.SampXmlRpcServerFactory; |
| 6 |
|
| 7 |
/** |
| 8 |
* Freestanding SampXmlRpcServerFactory implementation. |
| 9 |
* A new server object is returned each time, but this does not |
| 10 |
* mean a new port opened each time. |
| 11 |
* |
| 12 |
* @author Mark Taylor |
| 13 |
* @since 26 Aug 2008 |
| 14 |
*/ |
| 15 |
public class InternalServerFactory implements SampXmlRpcServerFactory { |
| 16 |
public synchronized SampXmlRpcServer getServer() throws IOException { |
| 17 |
return new InternalServer(); |
| 18 |
} |
| 19 |
} |