All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.mars.start.StartMars Maven / Gradle / Ivy

There is a newer version: 3.0.13
Show newest version
package com.mars.start;

import com.mars.start.base.BaseStartMars;
import com.mars.start.startmap.StartLoadList;

/**
 * 启动Mars框架
 * @author yuye
 *
 */
public class StartMars {
	/**
	 * 启动Mars框架
	 * @param clazz
	 */
	public static void start(Class clazz,String[] args) {
		BaseStartMars.setStartList(StartLoadList.initStartList());
		if(args != null && args[0] != null){
			BaseStartMars.start(clazz,null,args[0]);
		} else {
			BaseStartMars.start(clazz,null,null);
		}
	}

	/**
	 * 启动Mars框架
	 * @param clazz
	 */
	public static void start(Class clazz) {
		start(clazz,null);
	}
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy