Class AdminCommandRegistry
java.lang.Object
io.agentscope.spring.boot.admin.command.AdminCommandRegistry
Thread-safe registry of
AdminCommand instances.
Built-in commands are populated by BuiltinCommandRegistrar at startup. Third-party
starters (or business code) may inject additional commands via register(AdminCommand) —
the registry is the single source of truth that powers the /actuator/agentscope-commands
catalog.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionlist()All registered commands, sorted bycategorythenidfor stable output.voidregister(AdminCommand command) Register a command.intsize()
-
Constructor Details
-
AdminCommandRegistry
public AdminCommandRegistry()
-
-
Method Details
-
register
Register a command. Idempotent on identical entries; throws if a different command with the sameidalready exists. -
find
-
list
All registered commands, sorted bycategorythenidfor stable output. -
size
public int size()
-