Class ScreenXmlLoader

java.lang.Object
io.jmix.ui.sys.ScreenXmlLoader

@Component("ui_ScreenXmlLoader") public class ScreenXmlLoader extends Object
Loads screen XML descriptors.
  • Field Details

    • resources

      @Autowired protected Resources resources
    • screenXmlCache

      @Autowired protected ScreenXmlDocumentCache screenXmlCache
    • screenXmlParser

      @Autowired protected ScreenXmlParser screenXmlParser
    • applicationContext

      @Autowired protected org.springframework.context.ApplicationContext applicationContext
    • meterRegistry

      @Autowired protected io.micrometer.core.instrument.MeterRegistry meterRegistry
  • Constructor Details

    • ScreenXmlLoader

      public ScreenXmlLoader()
  • Method Details

    • load

      public org.dom4j.Element load(String resourcePath, String id, Map<String,Object> params)
      Loads a descriptor.
      Parameters:
      resourcePath - path to the resource containing the XML
      id - screen ID
      params - screen parameters
      Returns:
      root XML element
    • loadTemplate

      protected String loadTemplate(String resourcePath)
    • getDocument

      protected org.dom4j.Document getDocument(String template, Map<String,Object> params)
    • createDocument

      protected org.dom4j.Document createDocument(String template, Map<String,Object> params)