【代码评审】IoT:评审 plugin 实现
This commit is contained in:
@@ -22,6 +22,7 @@
|
||||
<artifactId>yudao-common</artifactId>
|
||||
</dependency>
|
||||
<!-- PF4J -->
|
||||
<!-- TODO 芋艿:这个依赖,要不要放在 api 包 -->
|
||||
<dependency>
|
||||
<groupId>org.pf4j</groupId>
|
||||
<artifactId>pf4j-spring</artifactId>
|
||||
|
@@ -7,6 +7,7 @@ import java.util.Map;
|
||||
* 服务注册表 - 插架模块使用,无法使用 Spring 注入
|
||||
*/
|
||||
public class ServiceRegistry {
|
||||
|
||||
private static final Map<Class<?>, Object> services = new HashMap<>();
|
||||
|
||||
/**
|
||||
@@ -31,4 +32,5 @@ public class ServiceRegistry {
|
||||
public static <T> T getService(Class<T> serviceClass) {
|
||||
return (T) services.get(serviceClass);
|
||||
}
|
||||
|
||||
}
|
@@ -1,4 +1,4 @@
|
||||
package cn.iocoder.yudao.module.iot.api;
|
||||
package cn.iocoder.yudao.module.iot.api.device;
|
||||
|
||||
/**
|
||||
* 设备数据 API
|
Reference in New Issue
Block a user