This commit is contained in:
zhuangqian 2016-10-08 09:53:38 +08:00
parent 6816ae95b5
commit 5bb328ec1f
4 changed files with 6 additions and 10 deletions

View File

@ -17,6 +17,7 @@ package com.smallchill.core.listener;
import org.springframework.context.ApplicationListener;
import org.springframework.context.event.ContextRefreshedEvent;
import org.springframework.stereotype.Component;
import com.smallchill.core.config.BladeConfig;
import com.smallchill.core.constant.Cst;
@ -29,6 +30,7 @@ import com.smallchill.core.plugins.connection.ConnectionPlugin;
* 启动监听器
*
*/
@Component
public class StartupListener implements ApplicationListener<ContextRefreshedEvent> {
@Override

View File

@ -17,6 +17,7 @@ package com.smallchill.core.listener;
import org.springframework.context.ApplicationListener;
import org.springframework.context.event.ContextStoppedEvent;
import org.springframework.stereotype.Component;
import com.smallchill.core.plugins.PluginManager;
@ -24,6 +25,7 @@ import com.smallchill.core.plugins.PluginManager;
* 关闭监听器
*
*/
@Component
public class StopListener implements ApplicationListener<ContextStoppedEvent> {
@Override

View File

@ -19,7 +19,9 @@ import java.util.Map;
import org.springframework.context.ApplicationContext;
import org.springframework.context.ApplicationContextAware;
import org.springframework.stereotype.Component;
@Component
public class SpringAcaHolder implements ApplicationContextAware {
private static ApplicationContext applicationContext;

View File

@ -44,16 +44,6 @@
</property>
<property name="configLocation" value="classpath:/config/beetlsql.properties"></property>
</bean>
<!-- 工程启动监听配置 -->
<bean id="startupListener" class="com.smallchill.core.listener.StartupListener"></bean>
<!-- 工程关闭监听配置 -->
<bean id="stopListener" class="com.smallchill.core.listener.StopListener"></bean>
<!-- 全局application -->
<bean id="springAcaHolder" class="com.smallchill.core.toolbox.support.SpringAcaHolder"></bean>
<!-- blade框架自定义config -->
<bean id="bladeConfig" class="com.smallchill.core.config.BladeConfig">