Class Utils
java.lang.Object
org.springframework.shell.core.utils.Utils
Some text utilities.
- Author:
- Eric Bottard, Mahmoud Ben Hassine
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic jakarta.validation.ValidatorGets a default shared validator.static jakarta.validation.ValidatorFactoryGets a default shared validation factory.static StringformatAvailableCommands(CommandRegistry commandRegistry) Get a formatted string of available non-hidden commands from the command registry.
-
Constructor Details
-
Utils
public Utils()
-
-
Method Details
-
formatAvailableCommands
Get a formatted string of available non-hidden commands from the command registry.- Parameters:
commandRegistry- the command registry- Returns:
- a string of available commands with their descriptions
- Since:
- 4.0.0
-
defaultValidatorFactory
public static jakarta.validation.ValidatorFactory defaultValidatorFactory()Gets a default shared validation factory.- Returns:
- default validation factory
-
defaultValidator
public static jakarta.validation.Validator defaultValidator()Gets a default shared validator.- Returns:
- default validator
-