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 Details

    • ViewControllersConfigurationSorter

      public ViewControllersConfigurationSorter(JmixModules jmixModules)
  • Method Details

    • sort

    • 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
    • charsCount

      protected long charsCount(String string, Character character)
      Returns count of specific character in a string