浏览代码

bug #I40VPB 关于LiteflowExecutorAutoConfiguration中的shutdown bean名称

bryan31 3 年之前
父节点
当前提交
95777575c0

+ 2 - 2
liteflow-core/src/main/java/com/yomahub/liteflow/util/Shutdown.java → liteflow-core/src/main/java/com/yomahub/liteflow/util/LiteFlowExecutorPoolShutdown.java

@@ -11,9 +11,9 @@ import java.util.concurrent.ExecutorService;
  * 执行清理工作
  * @author Bryan.Zhang
  */
-public class Shutdown {
+public class LiteFlowExecutorPoolShutdown {
 
-    private static final Logger LOG = LoggerFactory.getLogger(Shutdown.class);
+    private static final Logger LOG = LoggerFactory.getLogger(LiteFlowExecutorPoolShutdown.class);
 
     @PreDestroy
     public void destroy() throws Exception {

+ 3 - 3
liteflow-spring-boot-starter/src/main/java/com/yomahub/liteflow/springboot/LiteflowExecutorAutoConfiguration.java

@@ -2,7 +2,7 @@ package com.yomahub.liteflow.springboot;
 
 import com.yomahub.liteflow.property.LiteflowConfig;
 import com.yomahub.liteflow.util.ExecutorHelper;
-import com.yomahub.liteflow.util.Shutdown;
+import com.yomahub.liteflow.util.LiteFlowExecutorPoolShutdown;
 import org.springframework.boot.autoconfigure.AutoConfigureAfter;
 import org.springframework.boot.autoconfigure.condition.ConditionalOnBean;
 import org.springframework.boot.autoconfigure.condition.ConditionalOnProperty;
@@ -30,7 +30,7 @@ public class LiteflowExecutorAutoConfiguration {
     }
 
     @Bean
-    public Shutdown shutdown() {
-        return new Shutdown();
+    public LiteFlowExecutorPoolShutdown liteFlowExecutorPoolShutdown() {
+        return new LiteFlowExecutorPoolShutdown();
     }
 }

+ 1 - 1
liteflow-test-spring/src/main/resources/applicationContext.xml

@@ -33,6 +33,6 @@
 		<property name="liteflowConfig" ref="liteflowConfig"/>
 	</bean>
 
-	<bean id="whenExecutors" class="com.yomahub.liteflow.util.Shutdown"/>
+	<bean id="whenExecutors" class="com.yomahub.liteflow.util.LiteFlowExecutorPoolShutdown"/>
 
 </beans>