Package io.jmix.core

Class JmixModuleDescriptor

java.lang.Object
io.jmix.core.JmixModuleDescriptor

public class JmixModuleDescriptor extends Object
Describes a Jmix module which the current application depends on.
  • Constructor Details

    • JmixModuleDescriptor

      public JmixModuleDescriptor(String id, String basePackage)
    • JmixModuleDescriptor

      public JmixModuleDescriptor(String id)
  • Method Details

    • getId

      public String getId()
      Returns:
      module Id
    • getBasePackage

      public String getBasePackage()
      Returns:
      base package of the module
    • addDependency

      public void addDependency(JmixModuleDescriptor other)
      INTERNAL. Add a dependency to the module.
    • getDependencies

      public List<JmixModuleDescriptor> getDependencies()
      Returns an unmodifiable list of dependent modules.
    • dependsOn

      public boolean dependsOn(JmixModuleDescriptor other)
      Check if this module depends on the given module.
    • setPropertySource

      public void setPropertySource(@Nullable org.springframework.core.env.PropertySource<?> propertySource)
      INTERNAL. Set the module's PropertySource.
    • getPropertySource

      @Nullable public org.springframework.core.env.PropertySource<?> getPropertySource()
      Get the module's PropertySource.
    • getProperty

      @Nullable public String getProperty(String property)
      Returns:
      a property defined in this module's PropertySource or null if not found
    • equals

      public boolean equals(Object o)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • toString

      public String toString()
      Overrides:
      toString in class Object