java.lang.Object
io.github.mmm.cli.CliBundle
Simple wrapper for
ResourceBundle to circumvent flaws and bugs in JDK.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic CliBundleof(CliCommand command, CliConsole console) static CliBundleof(Class<? extends CliCommand> commandClass, CliConsole console)
-
Constructor Details
-
CliBundle
The constructor.- Parameters:
name- thebase nameof theResourceBundle.console- theCliConsole.
-
-
Method Details
-
get
- Parameters:
key- theproperty keyof the value to localize.- Returns:
- the localized value.
-
get
- Parameters:
key- theproperty keyof the value to localize.fallback- the fallback to use if undefined.- Returns:
- the localized value.
-
of
- Parameters:
command- theCliCommandto getResourceBundlefor.console- theCliConsole.- Returns:
- the new
CliBundle.
-
of
- Parameters:
commandClass- theClassreflecting theCliCommandinterface to getResourceBundlefor.console- theCliConsole.- Returns:
- the new
CliBundle.
-