From e7becc4df18ba1f96f92920dc6c01f72eeafd0ca Mon Sep 17 00:00:00 2001
From: wuxw <928255095@qq.com>
Date: 星期四, 20 六月 2019 17:27:16 +0800
Subject: [PATCH] 开发部署文档 代码格式错误修改

---
 java110-event/src/main/java/com/java110/event/init/SystemStartUpInit.java |   10 ++++------
 1 files changed, 4 insertions(+), 6 deletions(-)

diff --git a/java110-event/src/main/java/com/java110/event/init/SystemStartUpInit.java b/java110-event/src/main/java/com/java110/event/init/SystemStartUpInit.java
index 3e0319f..940e6af 100644
--- a/java110-event/src/main/java/com/java110/event/init/SystemStartUpInit.java
+++ b/java110-event/src/main/java/com/java110/event/init/SystemStartUpInit.java
@@ -1,14 +1,12 @@
 package com.java110.event.init;
 
-import com.java110.core.factory.AppFactory;
+import com.java110.common.factory.ApplicationContextFactory;
 import com.java110.event.app.AppEventPublishing;
 import com.java110.event.app.AppListener;
 import com.java110.event.listener.common.CommonDispatchListener;
 import org.apache.commons.lang3.StringUtils;
 import org.springframework.boot.context.event.ApplicationReadyEvent;
 import org.springframework.context.ApplicationContext;
-import org.springframework.context.ApplicationListener;
-import org.springframework.context.event.ContextRefreshedEvent;
 import org.springframework.core.io.ClassPathResource;
 import org.springframework.core.io.support.PropertiesLoaderUtils;
 
@@ -60,7 +58,7 @@
         //鍔犺浇閰嶇疆鏂囦欢锛屾敞鍐岃鍗曞鐞嗕睛鍚�
         try {
 
-            AppFactory.setApplicationContext(event.getApplicationContext());
+            ApplicationContextFactory.setApplicationContext(event.getApplicationContext());
 
             Properties properties = this.load(DEFAULT_EVENT_PATH,DEFAULT_FILE_NAME);
 
@@ -82,7 +80,7 @@
         //鍔犺浇閰嶇疆鏂囦欢锛屾敞鍐岃鍗曞鐞嗕睛鍚�
         try {
 
-            AppFactory.setApplicationContext(context);
+            ApplicationContextFactory.setApplicationContext(context);
 
             Properties properties = this.load(DEFAULT_EVENT_PATH,DEFAULT_FILE_NAME);
 
@@ -124,7 +122,7 @@
             //杩欓噷涓嶈兘鐩存帴鍙嶅皠锛岃繖鏍� IXXXService 鏃犳硶娉ㄥ叆锛屾墍浠ョ洿鎺ヤ粠spring 涓幏鍙栧凡缁忔敞鍏ョ殑
             //AppListener<?> appListener = (AppListener<?>)Class.forName(listener).newInstance();
 
-            AppListener<?> appListener = (AppListener<?>)AppFactory.getBean(listener);
+            AppListener<?> appListener = (AppListener<?>) ApplicationContextFactory.getBean(listener);
 
             //灏� listener 鏀惧叆 AppEventPublishing 涓柟渚垮悗鏈熸搷浣�
             //娉ㄥ唽渚﹀惉

--
Gitblit v1.8.0