You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@sling.apache.org by "Stefan Seifert (JIRA)" <ji...@apache.org> on 2016/12/07 21:35:59 UTC

[jira] [Created] (SLING-6374) Context-Aware Config: Allow to control property order in annotation classes

Stefan Seifert created SLING-6374:
-------------------------------------

             Summary: Context-Aware Config: Allow to control property order in annotation classes
                 Key: SLING-6374
                 URL: https://issues.apache.org/jira/browse/SLING-6374
             Project: Sling
          Issue Type: New Feature
          Components: Extensions
            Reporter: Stefan Seifert
            Assignee: Stefan Seifert
            Priority: Minor
             Fix For: Context-Aware Configuration API 1.0.2, Context-Aware Configuration SPI 1.2.0, Context-Aware Configuration Impl 1.2.0


property metadata is most time defined via annotation classes, which are parsed at run time to get the configuration metadata. unfortunately the java reflection API does not provide a way to access the order of methods/properties as they are defined in the source code.

so we introduce an optional "order" property in the @Property annotation which allows to control the order.

(an alternative would be to parse the annotation source code files at built time, generate some metadata files, include them in the bundle and parse the metadata at run time - but this is too much effort for now, and could still be added later if needed).



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)