Class ActionCommandRegionGlobalCheckKit
java.lang.Object
com.iohao.net.framework.core.kit.ActionCommandRegionGlobalCheckKit
Global duplicate route detection tool
- Author:
- 渔民小镇
- date:
- 2022-07-31
-
Method Summary
Modifier and TypeMethodDescriptionstatic voidScan all registered command regions and throw if duplicate routes are found.static voidputActionCommandRegions(String key, ActionCommandRegions actionCommandRegions) Register an ActionCommandRegions instance for global duplicate route detection.
-
Method Details
-
putActionCommandRegions
Register an ActionCommandRegions instance for global duplicate route detection.- Parameters:
key- the unique identifier for this command regions instanceactionCommandRegions- the command regions to register
-
detectGlobalDuplicateRoutes
public static void detectGlobalDuplicateRoutes()Scan all registered command regions and throw if duplicate routes are found.- Throws:
CommonRuntimeException- if any duplicate routes are detected
-