mirror of
https://github.com/slhaf/Partner.git
synced 2026-05-12 16:53:04 +08:00
需继续为上层模块构建注册体系以适应完整的加载逻辑。
- 移除了 BaseCoordinateManager 抽象类,而是添加了 @CoordinateManager 注解 - 移除了 CapabilityHolder 抽象类,换成 @CapabilityHolder 注解 - 新增了适应新注册机制的部分类,仍需进一步推进
This commit is contained in:
15
Partner-Test-Demo/src/test/java/FunctionRouterTest.java
Normal file
15
Partner-Test-Demo/src/test/java/FunctionRouterTest.java
Normal file
@@ -0,0 +1,15 @@
|
||||
import org.junit.jupiter.api.Test;
|
||||
import work.slhaf.demo.ability.CacheCapability;
|
||||
import work.slhaf.demo.capability.annotation.InjectCapability;
|
||||
|
||||
public class FunctionRouterTest {
|
||||
|
||||
@InjectCapability
|
||||
private CacheCapability cache;
|
||||
|
||||
@Test
|
||||
public void test(){
|
||||
cache.getUserDialogMapStr("123",111);
|
||||
}
|
||||
|
||||
}
|
||||
5
Partner-Test-Demo/src/test/java/InterfaceTest.java
Normal file
5
Partner-Test-Demo/src/test/java/InterfaceTest.java
Normal file
@@ -0,0 +1,5 @@
|
||||
public interface InterfaceTest {
|
||||
default String getName(){
|
||||
return "111";
|
||||
}
|
||||
}
|
||||
9
Partner-Test-Demo/src/test/java/TestImpl.java
Normal file
9
Partner-Test-Demo/src/test/java/TestImpl.java
Normal file
@@ -0,0 +1,9 @@
|
||||
import org.junit.jupiter.api.Test;
|
||||
|
||||
public class TestImpl implements InterfaceTest{
|
||||
|
||||
@Test
|
||||
public void test(){
|
||||
System.out.println(getName());
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user