// Path: src/com/netty/push/server/IServer.java
// public interface IServer {
// 	public void start() throws Exception;
// 
// 	public void stop() throws Exception;
// 
// 	public void restart() throws Exception;
// }


import org.springframework.context.ApplicationContext;
import org.springframework.context.support.ClassPathXmlApplicationContext;
import org.springframework.context.support.FileSystemXmlApplicationContext;
import com.netty.push.server.IServer;
package com.netty.push;



public class Application {

	/**
	 * @param args
	 */
	public static void main(String[] args) throws Exception {
		String params = (args != null && args.length > 0) ? args[0] : null;
		// 启动服务器
		ApplicationContext context = getApplicationContext(params);
		if (context != null) {
// Path: src/com/netty/push/server/IServer.java
// public interface IServer {
// 	public void start() throws Exception;
// 
// 	public void stop() throws Exception;
// 
// 	public void restart() throws Exception;
// }


// Path: src/com/netty/push/Application.java
import org.springframework.context.ApplicationContext;
import org.springframework.context.support.ClassPathXmlApplicationContext;
import org.springframework.context.support.FileSystemXmlApplicationContext;
import com.netty.push.server.IServer;

package com.netty.push;



public class Application {

	/**
	 * @param args
	 */
	public static void main(String[] args) throws Exception {
		String params = (args != null && args.length > 0) ? args[0] : null;
		// 启动服务器
		ApplicationContext context = getApplicationContext(params);
		if (context != null) {
			IServer server = (IServer) context.getBean("nettyServer");