enhancement
It should be possible to create a ConfigurationDescriptor programmatically in XML files. In other words, the definition of a typed configuration should not be generated exclusively via a Java interface, but also generically via a configuration. This makes it possible to describe a declarative form entirely without Java (for the declaration).
Implementation
The ` ConfigurationItem ` `com.top_logic.basic.config.ConfigurationDescriptorConfig ` describes such a ` ConfigurationDescriptor`. It can be instantiated using the utility method ` TypedConfiguration#getConfigurationDescriptor(ConfigurationDescriptorConfig)`.
Example of a configuration
#!xml <descriptor> <property name="string-property" type="java.lang.String" /> <property name="int-property" type="java.lang.Integer" mandatory="true" /> <property name="config-property" type="com.top_logic.basic.config.NamedConfigMandatory" /> <property name="map-property" element-type="com.top_logic.basic.config.NamedConfigMandatory" key-attribute="name" type="java.util.Map" /> </descriptor>
Test
- test.com.top_logic.basic.config.TestDeclarativeConfigDescriptor
- Declarative form with configured type: Technical Demo > Layout Framework #1 > Forms > Declarative Form (Configured Type)