Class DefaultCommandManager
java.lang.Object
org.incendo.cloud.CommandManager<eu.cloudnetservice.node.command.source.CommandSource>
eu.cloudnetservice.node.impl.command.defaults.DefaultCommandManager
- All Implemented Interfaces:
CommandBuilderSource<eu.cloudnetservice.node.command.source.CommandSource>, Stateful<RegistrationState>
@Singleton
final class DefaultCommandManager
extends CommandManager<eu.cloudnetservice.node.command.source.CommandSource>
Default implementation of the command manager.
-
Constructor Summary
ConstructorsModifierConstructorDescriptionprivateConstructs the default implementation of theCommandManager. -
Method Summary
Modifier and TypeMethodDescriptionbooleanhasPermission(@NonNull eu.cloudnetservice.node.command.source.CommandSource sender, @NonNull String permission) Methods inherited from class CommandManager
appendSuggestionMapper, capabilities, captionFormatter, captionFormatter, captionRegistry, captionRegistry, command, command, command, commandExecutor, commandRegistrationHandler, commandRegistrationHandler, commands, commandSyntaxFormatter, commandSyntaxFormatter, commandTree, componentBuilder, createHelpHandler, createHelpHandler, decorateBuilder, deleteRootCommand, exceptionController, flagBuilder, hasCapability, helpHandlerFactory, helpHandlerFactory, isCommandRegistrationAllowed, lockRegistration, parameterInjectorRegistry, parserRegistry, postprocessContext, preprocessContext, registerCapability, registerCommandPostProcessor, registerCommandPreProcessor, registerDefaultExceptionHandlers, rootCommands, settings, state, suggestionFactory, suggestionMapper, suggestionMapper, suggestionProcessor, suggestionProcessor, testPermission, transitionIfPossibleMethods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface CommandBuilderSource
commandBuilder, commandBuilder, commandBuilder, commandBuilder, commandBuilder, commandBuilderMethods inherited from interface Stateful
requireState, transitionOrThrow
-
Constructor Details
-
DefaultCommandManager
private DefaultCommandManager()Constructs the default implementation of theCommandManager. Applying asynchronous command executing using a thread pool with 4 threads.
-
-
Method Details
-
hasPermission
public boolean hasPermission(@NonNull @NonNull eu.cloudnetservice.node.command.source.CommandSource sender, @NonNull @NonNull String permission) - Specified by:
hasPermissionin classCommandManager<eu.cloudnetservice.node.command.source.CommandSource>
-
createDefaultCommandMeta
- Specified by:
createDefaultCommandMetain interfaceCommandBuilderSource<eu.cloudnetservice.node.command.source.CommandSource>- Overrides:
createDefaultCommandMetain classCommandManager<eu.cloudnetservice.node.command.source.CommandSource>
-