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
-
Method Summary
Modifier and TypeMethodDescriptionprotected long
charsCount
(String string, Character character) Returns count of specific character in a stringprotected JmixModuleDescriptor
evaluateJmixModule
(String screensBasePackage) protected JmixModuleDescriptor
evaluateJmixModule
(Collection<String> screensBasePackages) Finds Jmix module with a base package that matches any of givenscreenBasePackages
.protected boolean
isNestedSubpackage
(String package1, String package2) Returns true ifpackage1
is 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 ifpackage1
is 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
-