Package io.jmix.core

Class JmixModules

java.lang.Object
io.jmix.core.JmixModules

public class JmixModules extends Object
Holds the list of JmixModuleDescriptors.
  • Constructor Details

    • JmixModules

      public JmixModules(List<JmixModuleDescriptor> moduleDescriptors, org.springframework.core.env.Environment environment)
  • Method Details

    • getAll

      public List<JmixModuleDescriptor> getAll()
      Returns:
      the list of module descriptors sorted according to dependencies
    • get

      @Nullable public JmixModuleDescriptor get(String moduleId)
      Returns:
      module descriptor by its id or null if not found
    • getLast

      public JmixModuleDescriptor getLast()
      Returns:
      the last module descriptor which normally corresponds to the application
    • getPropertyValues

      public List<String> getPropertyValues(String propertyName)
      Returns the list of property values from all modules in the order of their dependencies, from the core to the application. The last item in the list is the value obtained from Environment.

      This method is convenient for getting values of "additive" properties like jmix.core.fetchPlanConfig.