Class CommandCatalog.DefaultCommandCatalog
java.lang.Object
org.springframework.shell.command.CommandCatalog.DefaultCommandCatalog
- All Implemented Interfaces:
CommandCatalog
- Enclosing interface:
- CommandCatalog
Default implementation of a
CommandCatalog.-
Nested Class Summary
Nested classes/interfaces inherited from interface org.springframework.shell.command.CommandCatalog
CommandCatalog.DefaultCommandCatalog -
Method Summary
Modifier and TypeMethodDescriptionGets allCommandRegistrations mapped with their names.voidregister(CommandRegistration... registration) Register aCommandRegistration.voidunregister(String... commandName) Unregister aCommandRegistrationby its command name.voidunregister(CommandRegistration... registration) Unregister aCommandRegistration.
-
Method Details
-
register
Description copied from interface:CommandCatalogRegister aCommandRegistration.- Specified by:
registerin interfaceCommandCatalog- Parameters:
registration- the command registration
-
unregister
Description copied from interface:CommandCatalogUnregister aCommandRegistration.- Specified by:
unregisterin interfaceCommandCatalog- Parameters:
registration- the command registration
-
unregister
Description copied from interface:CommandCatalogUnregister aCommandRegistrationby its command name.- Specified by:
unregisterin interfaceCommandCatalog- Parameters:
commandName- the command name
-
getRegistrations
Description copied from interface:CommandCatalogGets allCommandRegistrations mapped with their names. Returned map is a copy and cannot be used to register new commands.- Specified by:
getRegistrationsin interfaceCommandCatalog- Returns:
- all command registrations
-