mirror of
https://github.com/slhaf/Partner.git
synced 2026-05-12 16:53:04 +08:00
refactor(framework): remove coordinated capability mechanism and related manager/annotations
This commit is contained in:
@@ -1,18 +0,0 @@
|
||||
package work.slhaf.demo.service;
|
||||
|
||||
import work.slhaf.demo.service.core.BTestCore;
|
||||
import work.slhaf.demo.service.core.CTestCore;
|
||||
import work.slhaf.partner.api.agent.factory.capability.annotation.CoordinateManager;
|
||||
import work.slhaf.partner.api.agent.factory.capability.annotation.Coordinated;
|
||||
|
||||
@CoordinateManager
|
||||
public class TestCoordinateManager {
|
||||
private BTestCore bTestCore = new BTestCore();
|
||||
private CTestCore cTestCore = new CTestCore();
|
||||
|
||||
@Coordinated(capability = "test_c")
|
||||
public void testMethodCoordinate(String input) {
|
||||
String resultB = bTestCore.testCoordinateSubMethod();
|
||||
cTestCore.testCoordinateSubMethod(resultB);
|
||||
}
|
||||
}
|
||||
@@ -1,12 +1,9 @@
|
||||
package work.slhaf.demo.service.capability;
|
||||
|
||||
import work.slhaf.partner.api.agent.factory.capability.annotation.Capability;
|
||||
import work.slhaf.partner.api.agent.factory.capability.annotation.ToCoordinated;
|
||||
|
||||
@Capability("test_c")
|
||||
public interface CTestCapability {
|
||||
void testMethodNormalA(String input);
|
||||
|
||||
@ToCoordinated
|
||||
void testMethodCoordinate(String input);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user