Stefan Seifert created SLING-6034:
-------------------------------------

             Summary: 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
             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