[
https://issues.apache.org/jira/browse/SLING-6034?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Stefan Seifert resolved SLING-6034.
-----------------------------------
Resolution: Won't Fix
Fix Version/s: (was: Context-Aware Configuration 1.0.0)
not implemented.
> Context-Aware Config: Allow direct adaption of configuration annotation
> classes
> -------------------------------------------------------------------------------
>
> Key: SLING-6034
> URL: https://issues.apache.org/jira/browse/SLING-6034
> Project: Sling
> Issue Type: New Feature
> Components: Extensions
> Reporter: Stefan Seifert
> Priority: Minor
> Labels: contextaware-config
>
> currently for getting a configuration mapped to a configuration annotation
> classes you need this code line:
> {code:java}
> SimpleConfig config =
> resourcePage1.adaptTo(ConfigurationBuilder.class).as(SimpleConfig.class);
> {code}
> with a dynamic adapter factory it should be also possible to adapt directly
> to the configuration class:
> {code:java}
> SimpleConfig config = resourcePage1.adaptTo(SimpleConfig.class);
> {code}
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)