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
-
Method Summary
Modifier and TypeMethodDescriptionprotected 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.void
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 ifpackage1
is a subpackage ofpackage2
, e.g. com.company.greeting.hello is a subpackage of com.company.greeting
-