[ 
https://issues.apache.org/jira/browse/SLING-6034?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Stefan Seifert updated SLING-6034:
----------------------------------
    Assignee:     (was: Stefan Seifert)
    Priority: Minor  (was: Major)

ok, we keep the classpath scanning discussion in SLING-6025 where it is 
currently already in use in the draft implementation.

i understand your concerns about b).

i leave this ticket open if someone other has a strong opinion on this feature 
to have it. if not we can close it and do not implement it.

> 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
>             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)

Reply via email to