@Component(value="ui_ScreenXmlLoader")
public class ScreenXmlLoader
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
protected org.springframework.context.ApplicationContext |
applicationContext |
protected io.micrometer.core.instrument.MeterRegistry |
meterRegistry |
protected io.jmix.core.Resources |
resources |
protected ScreenXmlDocumentCache |
screenXmlCache |
protected ScreenXmlParser |
screenXmlParser |
Constructor and Description |
---|
ScreenXmlLoader() |
Modifier and Type | Method and Description |
---|---|
protected org.dom4j.Document |
createDocument(java.lang.String template,
java.util.Map<java.lang.String,java.lang.Object> params) |
protected org.dom4j.Document |
getDocument(java.lang.String template,
java.util.Map<java.lang.String,java.lang.Object> params) |
org.dom4j.Element |
load(java.lang.String resourcePath,
java.lang.String id,
java.util.Map<java.lang.String,java.lang.Object> params)
Loads a descriptor.
|
protected java.lang.String |
loadTemplate(java.lang.String resourcePath) |
@Autowired protected io.jmix.core.Resources resources
@Autowired protected ScreenXmlDocumentCache screenXmlCache
@Autowired protected ScreenXmlParser screenXmlParser
@Autowired protected org.springframework.context.ApplicationContext applicationContext
@Autowired protected io.micrometer.core.instrument.MeterRegistry meterRegistry
public org.dom4j.Element load(java.lang.String resourcePath, java.lang.String id, java.util.Map<java.lang.String,java.lang.Object> params)
resourcePath
- path to the resource containing the XMLid
- screen IDparams
- screen parametersprotected java.lang.String loadTemplate(java.lang.String resourcePath)
protected org.dom4j.Document getDocument(java.lang.String template, java.util.Map<java.lang.String,java.lang.Object> params)
protected org.dom4j.Document createDocument(java.lang.String template, java.util.Map<java.lang.String,java.lang.Object> params)