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 Details

    • UiControllersConfigurationSorter

      public UiControllersConfigurationSorter(JmixModules jmixModules)
  • Method Details

    • sort

      public void sort(List<UiControllersConfiguration> configurations)
    • evaluateJmixModule

      @Nullable protected JmixModuleDescriptor evaluateJmixModule(Collection<String> screensBasePackages)
      Finds Jmix module with a base package that matches any of given screenBasePackages. 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

      @Nullable protected JmixModuleDescriptor evaluateJmixModule(String screensBasePackage)
    • isNestedSubpackage

      protected boolean isNestedSubpackage(String package1, String package2)
      Returns true if package1 is a subpackage of package2, e.g. com.company.greeting.hello is a subpackage of com.company.greeting