public static class CommandCatalog.DefaultCommandCatalog extends Object implements CommandCatalog
CommandCatalog.CommandCatalog.DefaultCommandCatalog| Modifier and Type | Method and Description | 
|---|---|
| Map<String,CommandRegistration> | getRegistrations()Gets all  CommandRegistrations mapped with their names. | 
| void | register(CommandRegistration... registration)Register a  CommandRegistration. | 
| void | unregister(CommandRegistration... registration)Unregister a  CommandRegistration. | 
| void | unregister(String... commandName)Unregister a  CommandRegistrationby its command name. | 
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitof, ofpublic void register(CommandRegistration... registration)
CommandCatalogCommandRegistration.register in interface CommandCatalogregistration - the command registrationpublic void unregister(CommandRegistration... registration)
CommandCatalogCommandRegistration.unregister in interface CommandCatalogregistration - the command registrationpublic void unregister(String... commandName)
CommandCatalogCommandRegistration by its command name.unregister in interface CommandCatalogcommandName - the command namepublic Map<String,CommandRegistration> getRegistrations()
CommandCatalogCommandRegistrations mapped with their names.
 Returned map is a copy and cannot be used to register new commands.getRegistrations in interface CommandCatalogCopyright © 2022. All rights reserved.