[
https://issues.apache.org/jira/browse/SLING-6374?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Stefan Seifert resolved SLING-6374.
-----------------------------------
Resolution: Fixed
Completed: At revision: 1773149
> 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
> Labels: contextaware-config
> 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)