Package org.incendo.cloud.internal
Class CommandRegistrationHandler.NullCommandRegistrationHandler<C>
java.lang.Object
org.incendo.cloud.internal.CommandRegistrationHandler.NullCommandRegistrationHandler<C>
- All Implemented Interfaces:
CommandRegistrationHandler<C>
- Enclosing interface:
CommandRegistrationHandler<C>
-
Nested Class Summary
Nested classes/interfaces inherited from interface org.incendo.cloud.internal.CommandRegistrationHandler
CommandRegistrationHandler.NullCommandRegistrationHandler<C> -
Method Summary
Modifier and TypeMethodDescriptionbooleanregisterCommand(@NonNull Command<C> command) Attempt to register the commandvoidunregisterRootCommand(@NonNull CommandComponent<C> rootCommand) Requests that the givenrootCommandshould be unregistered.
-
Method Details
-
registerCommand
Description copied from interface:CommandRegistrationHandlerAttempt to register the command- Specified by:
registerCommandin interfaceCommandRegistrationHandler<C>- Parameters:
command- Command to register- Returns:
trueif the command was registered successfully, elsefalse
-
unregisterRootCommand
Description copied from interface:CommandRegistrationHandlerRequests that the givenrootCommandshould be unregistered.- Specified by:
unregisterRootCommandin interfaceCommandRegistrationHandler<C>- Parameters:
rootCommand- The command to delete
-