Package io.jmix.flowui.sys
Class ViewControllersConfigurationSorter
java.lang.Object
io.jmix.flowui.sys.ViewControllersConfigurationSorter
@Component("flowui_ViewControllersConfigurationSorter")
public class ViewControllersConfigurationSorter
extends Object
Class sorts the list of
ViewControllersConfiguration 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<ViewControllersConfiguration> configurations)
-
Constructor Details
-
ViewControllersConfigurationSorter
-
-
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
-