Package io.jmix.ui.sys
Class UiControllersConfigurationSorter
java.lang.Object
io.jmix.ui.sys.UiControllersConfigurationSorter
@Component("ui_UiControllersConfigurationSorter")
public class UiControllersConfigurationSorter
extends Object
Class sorts the list of
UiControllersConfiguration in the same order as Jmix modules containing the screens
have been sorted.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected longcharsCount(String string, Character character) Returns count of specific character in a stringprotected JmixModuleDescriptorevaluateJmixModule(String screensBasePackage) protected JmixModuleDescriptorevaluateJmixModule(Collection<String> screensBasePackages) Finds Jmix module with a base package that matches any of givenscreenBasePackages.protected booleanisNestedSubpackage(String package1, String package2) Returns true ifpackage1is a subpackage ofpackage2, e.g.sort(List<UiControllersConfiguration> configurations)
-
Constructor Details
-
UiControllersConfigurationSorter
-
-
Method Details
-
sort
-
evaluateJmixModule
Finds Jmix module with a base package that matches any of givenscreenBasePackages. Jmix module matches the screen package if its base package equals screen base package or if screen base package is a "subpackage" of Jmix module base package. -
evaluateJmixModule
-
isNestedSubpackage
Returns true ifpackage1is a subpackage ofpackage2, e.g. com.company.greeting.hello is a subpackage of com.company.greeting -
charsCount
Returns count of specific character in a string
-