[ https://issues.apache.org/jira/browse/SLING-6504?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15960546#comment-15960546 ]
Feike Visser edited comment on SLING-6504 at 4/7/17 9:28 AM: ------------------------------------------------------------- This is more convenient, you now see Use-classes with just one line of code to do the adaption. Same as we do for formatting and the support for resources in data-sly-use. Of course you can do this in code, but my request is to make it easier for developers, and requires less code. was (Author: fvisser): This is more convenient, you now see Use-classes with just one line of code to do the adaption. Same as we do for formatting and the support for resources in data-sly-use. > Use-api to support more flexible way to adapt from different objects > -------------------------------------------------------------------- > > Key: SLING-6504 > URL: https://issues.apache.org/jira/browse/SLING-6504 > Project: Sling > Issue Type: Improvement > Components: Scripting > Reporter: Feike Visser > Labels: Sightly > > The current implementation of the Use-api accept classes that are adaptable > from Request or Resource. > This issue is to make this mechanism more flexible, to be able to adapt from > different objects. > Proposal: > {code} > data-sly-use.obj="com.example.Class from resourceResolver" > {code} > {code} > data-sly-use.obj="com.example.Class from yourCustomObject" > {code} -- This message was sent by Atlassian JIRA (v6.3.15#6346)