Class CommandRegistration.DefaultCommandRegistration
java.lang.Object
org.springframework.shell.command.CommandRegistration.DefaultCommandRegistration
- All Implemented Interfaces:
CommandRegistration
- Enclosing interface:
- CommandRegistration
public static class CommandRegistration.DefaultCommandRegistration
extends Object
implements CommandRegistration
-
Nested Class Summary
Nested classes/interfaces inherited from interface org.springframework.shell.command.CommandRegistration
CommandRegistration.AliasSpec, CommandRegistration.BaseBuilder, CommandRegistration.Builder, CommandRegistration.BuilderSupplier, CommandRegistration.DefaultAliasSpec, CommandRegistration.DefaultBuilder, CommandRegistration.DefaultCommandRegistration, CommandRegistration.DefaultErrorHandlingSpec, CommandRegistration.DefaultExitCodeSpec, CommandRegistration.DefaultHelpOptionsSpec, CommandRegistration.DefaultOptionSpec, CommandRegistration.DefaultTargetSpec, CommandRegistration.ErrorHandlingSpec, CommandRegistration.ExitCodeSpec, CommandRegistration.HelpOptionInfo, CommandRegistration.HelpOptionsSpec, CommandRegistration.OptionArity, CommandRegistration.OptionSpec, CommandRegistration.TargetInfo, CommandRegistration.TargetSpec
-
Constructor Summary
ConstructorDescriptionDefaultCommandRegistration
(String[] commands, InteractionMode interactionMode, String group, boolean hidden, String description, Supplier<Availability> availability, List<CommandRegistration.DefaultOptionSpec> optionSpecs, CommandRegistration.DefaultTargetSpec targetSpec, List<CommandRegistration.DefaultAliasSpec> aliasSpecs, CommandRegistration.DefaultExitCodeSpec exitCodeSpec, CommandRegistration.DefaultErrorHandlingSpec errorHandlingSpec, CommandRegistration.DefaultHelpOptionsSpec helpOptionsSpec) -
Method Summary
Modifier and TypeMethodDescriptionGets an aliases.GetAvailability
for a commandGets a command for this registration.Get description for a command.Gets an exception resolvers.Gets an exit code.getGroup()
Get group for a command.Gets a help option info.Gets anInteractionMode
.Gets an options.Gets target info.boolean
isHidden()
Returns if command is hidden.
-
Constructor Details
-
DefaultCommandRegistration
public DefaultCommandRegistration(String[] commands, InteractionMode interactionMode, String group, boolean hidden, String description, Supplier<Availability> availability, List<CommandRegistration.DefaultOptionSpec> optionSpecs, CommandRegistration.DefaultTargetSpec targetSpec, List<CommandRegistration.DefaultAliasSpec> aliasSpecs, CommandRegistration.DefaultExitCodeSpec exitCodeSpec, CommandRegistration.DefaultErrorHandlingSpec errorHandlingSpec, CommandRegistration.DefaultHelpOptionsSpec helpOptionsSpec)
-
-
Method Details
-
getCommand
Description copied from interface:CommandRegistration
Gets a command for this registration.- Specified by:
getCommand
in interfaceCommandRegistration
- Returns:
- command
-
getInteractionMode
Description copied from interface:CommandRegistration
Gets anInteractionMode
.- Specified by:
getInteractionMode
in interfaceCommandRegistration
- Returns:
- the interaction mode
-
getGroup
Description copied from interface:CommandRegistration
Get group for a command.- Specified by:
getGroup
in interfaceCommandRegistration
- Returns:
- the group
-
isHidden
public boolean isHidden()Description copied from interface:CommandRegistration
Returns if command is hidden.- Specified by:
isHidden
in interfaceCommandRegistration
- Returns:
- true if command is hidden
-
getDescription
Description copied from interface:CommandRegistration
Get description for a command.- Specified by:
getDescription
in interfaceCommandRegistration
- Returns:
- the description
-
getAvailability
Description copied from interface:CommandRegistration
GetAvailability
for a command- Specified by:
getAvailability
in interfaceCommandRegistration
- Returns:
- the availability
-
getOptions
Description copied from interface:CommandRegistration
Gets an options.- Specified by:
getOptions
in interfaceCommandRegistration
- Returns:
- the options
-
getTarget
Description copied from interface:CommandRegistration
Gets target info.- Specified by:
getTarget
in interfaceCommandRegistration
- Returns:
- the target info
-
getAliases
Description copied from interface:CommandRegistration
Gets an aliases.- Specified by:
getAliases
in interfaceCommandRegistration
- Returns:
- the aliases
-
getExitCode
Description copied from interface:CommandRegistration
Gets an exit code.- Specified by:
getExitCode
in interfaceCommandRegistration
- Returns:
- the exit code
-
getExceptionResolvers
Description copied from interface:CommandRegistration
Gets an exception resolvers.- Specified by:
getExceptionResolvers
in interfaceCommandRegistration
- Returns:
- the exception resolvers
-
getHelpOption
Description copied from interface:CommandRegistration
Gets a help option info.- Specified by:
getHelpOption
in interfaceCommandRegistration
- Returns:
- the help option info
-