/// <summary> /// 使用Player模式启动 /// </summary> /// <param name="appManagement"></param> public override void Boot(XAppManagement appManagement) { XApplication app = CreateDefaultApp(); XApplicationList list = appManagement.GetAppList(); list.Add(app); list.MarkAsDefaultApp(app.AppInfo.AppId); string StartParams = XStartParams.GetStartParams(); appManagement.StartDefaultApp(XStartParams.Parse(StartParams)); }
/// <summary> /// 1. 解析系统的配置文件 /// 2. 根据配置文件进行预安装 /// 3. 预安装完后启动默认的app /// </summary> /// <param name="runtime"></param> public override void Boot(XAppManagement appManagement) { if (this.isPreInstallRequired) { //预安装,预安装完成启动DefaultApp //FIXME:异步处理 XPreInstallListener listener = new XPreInstallListener(appManagement); XPreinstalledAppBatchInstaller preinstalledinstall = new XPreinstalledAppBatchInstaller(appManagement, listener); preinstalledinstall.Install(); } else { //start defaultApp string StartParams = XStartParams.GetStartParams(); appManagement.StartDefaultApp(XStartParams.Parse(StartParams)); } }
public XAmsImpl(XAppManagement appManagement) { this.appManagement = appManagement; }
public void init(XAppManagement appManagement) { this.ams = new XAmsImpl(appManagement); }
/// <summary> /// 1. 解析系统的配置文件 /// 2. 根据配置文件进行预安装 /// 3. 预安装完后启动默认的app /// </summary> /// <param name="runtime"></param> public virtual void Boot(XAppManagement appManagement) { }
/// <summary> /// 管理器的初始化 /// </summary> private void initialize() { //管理器的初始化 if (null == appManagement) { appManagement = new XAppManagement(this); appManagement.Init(); } //初始化完成,启动default app //startDefaultApp this.xFaceBoot.Boot(appManagement); }
public XPreInstallListener(XAppManagement ams) { this.ams = ams; }
public XPreinstalledAppBatchInstaller( XAppManagement ams, XPreInstallListener listener) : base(ams, listener) { }
public XStartAppInstaller(XAppManagement ams, XPreInstallListener listener) { preInsallListener = listener; this.ams = ams; }