You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@sling.apache.org by "Jason E Bailey (JIRA)" <ji...@apache.org> on 2014/11/18 16:36:33 UTC
[jira] [Resolved] (SLING-3949) Sling Models: Add via support to
Self annotation
[ https://issues.apache.org/jira/browse/SLING-3949?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Jason E Bailey resolved SLING-3949.
-----------------------------------
Resolution: Won't Fix
As per the comment by [~justinedelson]. The @Self annotation won't be applied. Rather a preferred solution would be a contribution of a Bean based injector. Will create a specific story for that at the time of contribution.
> Sling Models: Add via support to Self annotation
> ------------------------------------------------
>
> Key: SLING-3949
> URL: https://issues.apache.org/jira/browse/SLING-3949
> Project: Sling
> Issue Type: Improvement
> Reporter: Jason E Bailey
> Priority: Minor
> Labels: models
>
> Allows the object that is to be applied or adapted to come from a property of the given adaptable.
> example:
> {code}
> @Model(adaptables = SlingHttpServletRequest.class)
> public class Foo {
> @Self(via = "resourceResolver")
> TagManager tagManager;
> }
> {code}
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)