[
https://issues.apache.org/jira/browse/SLING-6034?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15464932#comment-15464932
]
Stefan Seifert commented on SLING-6034:
---------------------------------------
the feature to detect all configuration classes of a deployed bundle via
scanning its class path in all packages defined as a bundle header named
{{Sling-ContextAware-Config-Packages}} we already have in place for SLING-6025.
so the only addition in this ticket would be the dynamic adapter factory.
> 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
> Assignee: Stefan Seifert
> Labels: contextaware-config
> Fix For: Context-Aware Configuration 1.0.0
>
>
> 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)