Package cloud.commandframework.internal
Class CommandRegistrationHandler.NullCommandRegistrationHandler
java.lang.Object
cloud.commandframework.internal.CommandRegistrationHandler.NullCommandRegistrationHandler
- All Implemented Interfaces:
CommandRegistrationHandler
- Enclosing interface:
- CommandRegistrationHandler
@API(status=INTERNAL,
consumers="cloud.commandframework.*")
public static final class CommandRegistrationHandler.NullCommandRegistrationHandler
extends Object
implements CommandRegistrationHandler
-
Nested Class Summary
Nested classes/interfaces inherited from interface cloud.commandframework.internal.CommandRegistrationHandler
CommandRegistrationHandler.NullCommandRegistrationHandler -
Method Summary
Modifier and TypeMethodDescriptionbooleanregisterCommand(@NonNull Command<?> command) Attempt to register the commandvoidunregisterRootCommand(@NonNull StaticArgument<?> rootCommand) Requests that the givenrootCommandshould be unregistered.
-
Method Details
-
registerCommand
Description copied from interface:CommandRegistrationHandlerAttempt to register the command- Specified by:
registerCommandin interfaceCommandRegistrationHandler- 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- Parameters:
rootCommand- The command to delete
-