Commit a7eeacd5b11fadc57ca03461f040b66552962ed0
1 parent
1d2d7f98
```
refactor(mqtt-vertx): 重构verticle相关类的包结构和命名 - 将MqttVerticle从deploy包移动到verticle包 - 将VerticleDeployer重命名为VerticleLifeTime并移至根包 - 更新相关导入语句以匹配新的包结构 - 调整类名以更好地反映其生命周期管理职责 ```
Showing
2 changed files
with
5 additions
and
4 deletions
mqtt-vertx/src/main/java/com/diligrp/mqtt/vertx/deploy/VerticleDeployer.java renamed to mqtt-vertx/src/main/java/com/diligrp/mqtt/vertx/VerticleLifeTime.java
| 1 | -package com.diligrp.mqtt.vertx.deploy; | 1 | +package com.diligrp.mqtt.vertx; |
| 2 | 2 | ||
| 3 | +import com.diligrp.mqtt.vertx.verticle.MqttVerticle; | ||
| 3 | import io.vertx.core.Vertx; | 4 | import io.vertx.core.Vertx; |
| 4 | import lombok.extern.slf4j.Slf4j; | 5 | import lombok.extern.slf4j.Slf4j; |
| 5 | import org.springframework.beans.factory.DisposableBean; | 6 | import org.springframework.beans.factory.DisposableBean; |
| @@ -13,11 +14,11 @@ import org.springframework.stereotype.Component; | @@ -13,11 +14,11 @@ import org.springframework.stereotype.Component; | ||
| 13 | */ | 14 | */ |
| 14 | @Component | 15 | @Component |
| 15 | @Slf4j | 16 | @Slf4j |
| 16 | -public class VerticleDeployer implements CommandLineRunner, DisposableBean { | 17 | +public class VerticleLifeTime implements CommandLineRunner, DisposableBean { |
| 17 | 18 | ||
| 18 | private final Vertx vertx; | 19 | private final Vertx vertx; |
| 19 | 20 | ||
| 20 | - public VerticleDeployer(Vertx vertx) { | 21 | + public VerticleLifeTime(Vertx vertx) { |
| 21 | this.vertx = vertx; | 22 | this.vertx = vertx; |
| 22 | } | 23 | } |
| 23 | 24 |
mqtt-vertx/src/main/java/com/diligrp/mqtt/vertx/deploy/MqttVerticle.java renamed to mqtt-vertx/src/main/java/com/diligrp/mqtt/vertx/verticle/MqttVerticle.java