/// <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));
 }
예제 #2
0
 /// <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));
     }
 }
예제 #3
0
 public XAmsImpl(XAppManagement appManagement)
 {
     this.appManagement = appManagement;
 }
예제 #4
0
 public void init(XAppManagement appManagement)
 {
     this.ams = new XAmsImpl(appManagement);
 }
예제 #5
0
 /// <summary>
 /// 1. 解析系统的配置文件
 /// 2. 根据配置文件进行预安装
 /// 3. 预安装完后启动默认的app
 /// </summary>
 /// <param name="runtime"></param>
 public virtual void Boot(XAppManagement appManagement)
 {
 }
예제 #6
0
        /// <summary>
        /// 管理器的初始化
        /// </summary>
        private void initialize()
        {
            //管理器的初始化
            if (null == appManagement)
            {
                appManagement = new XAppManagement(this);
                appManagement.Init();
            }

            //初始化完成,启动default app
            //startDefaultApp
            this.xFaceBoot.Boot(appManagement);
        }
예제 #7
0
 public XPreInstallListener(XAppManagement ams)
 {
     this.ams = ams;
 }
 public XPreinstalledAppBatchInstaller( XAppManagement ams, XPreInstallListener listener)
     : base(ams, listener)
 {
 }
예제 #9
0
 public XStartAppInstaller(XAppManagement ams, XPreInstallListener listener)
 {
     preInsallListener = listener;
     this.ams = ams;
 }