Browse Source

Pull request #15457: REPORT-128071 插件引擎适配微服务-适配支持特定服务

Merge in DESIGN/design from ~LEO.QIN/design:fbp/feature to fbp/feature

* commit 'bc9be9971aea3738014296c9d25d6bf36e9b3763':
  REPORT-128071 插件引擎适配微服务-适配支持特定服务
fbp/feature
Leo.Qin-覃宇攀 1 month ago
parent
commit
5e0b313998
  1. 2
      designer-realize/src/main/java/com/fanruan/boot/env/DesignPluginComponent.java
  2. 31
      designer-realize/src/main/java/com/fanruan/boot/env/DesignVersionComponent.java

2
designer-realize/src/main/java/com/fanruan/boot/env/DesignPluginComponent.java vendored

@ -46,7 +46,7 @@ import java.util.function.Supplier;
* Created on 2024/5/17
*/
@FineComponent(name = "design_plugin")
@DependsOn(dependencies = {"design_env_prepare"})
@DependsOn(dependencies = {"design_version"})
public class DesignPluginComponent extends PluginComponent {

31
designer-realize/src/main/java/com/fanruan/boot/env/DesignVersionComponent.java vendored

@ -0,0 +1,31 @@
package com.fanruan.boot.env;
import com.fanruan.boot.VersionComponent;
import com.fanruan.carina.annotions.DependsOn;
import com.fanruan.carina.annotions.FineComponent;
import com.fanruan.carina.annotions.Start;
import com.fanruan.version.ServiceVersion;
import com.fanruan.version.VersionCenter;
import com.fanruan.version.VersionConstants;
/**
* 设计器版本模块
*
* @author Leo.Qin
* @since 11.0
* Created on 2024/11/11
*/
@FineComponent(name = "design_version")
@DependsOn(dependencies = {"design_env_prepare"})
public class DesignVersionComponent extends VersionComponent {
@Start
@Override
public void start() {
super.start();
ServiceVersion serviceVersion = VersionCenter.getInstance().getServiceVersion();
serviceVersion.setName(VersionConstants.SERVICE_NAME_FR);
VersionCenter.getInstance().register(serviceVersion);
}
}
Loading…
Cancel
Save