package com.xcong.excoin.modules.gateApi;
|
|
import org.springframework.context.ApplicationContext;
|
import org.springframework.context.support.ClassPathXmlApplicationContext;
|
|
/**
|
* Gate 网格交易的独立测试入口(main 方法)。
|
* 通过 Spring XML 上下文初始化管理器,运行一段时间后手动关闭。
|
*
|
* @author Administrator
|
*/
|
public class GateWebSocketClientMain {
|
public static void main(String[] args) throws InterruptedException {
|
ApplicationContext context = new ClassPathXmlApplicationContext("applicationContext.xml");
|
GateWebSocketClientManager manager = context.getBean(GateWebSocketClientManager.class);
|
|
Thread.sleep(1200000000L);
|
|
manager.destroy();
|
}
|
}
|