Despite the documentation at 
https://sling.apache.org/documentation/bundles/configuration-installer-factory.html#configuration-files-config
 
<https://github.com/apache/felix/blob/trunk/configadmin/src/main/java/org/apache/felix/cm/file/ConfigurationHandler.java>
 also primitive types are supported (with lower-case type information 
characters, compare with 
https://github.com/apache/felix/blob/ad2aabb04c754f86c6417c437256500dd61a4ffb/configadmin/src/main/java/org/apache/felix/cm/file/ConfigurationHandler.java#L92).
Is there a reason why this is not documented?
AFAIK the lowercase is also used for the JCR Installer write back, e.g. in case 
the metatype defines something like "<AD id="levels" type="Integer" 
cardinality="2147483647" name="Absolute Levels" description="List of absolute 
parent levels. Example: Absolute parent level 1 of '/foo/bar/test' is 
'/foo/bar'."/>"
    
In case the cardinality is a large positive integer it is always supposed to be 
an array of primitives (compare with 
https://osgi.org/specification/osgi.cmpn/7.0.0/service.metatype.html#org.osgi.service.metatype.annotations.AttributeType).
Does anything speak against extending that documentation in that regard?

Thanks,
Konrad

Reply via email to