[RT] Sling Models as scoped Dependency Injection Framework

2014-06-30 Thread Stefan Seifert
in the last days we played around with Sling Models as underpinning of our views in a Sling+Sightly based application. it works fantastic. but during our experiments we detected that we were not using Sling Models for accessing resource content, i.e. we are not adapting resources to models to

Re: [RT] Sling Models as scoped Dependency Injection Framework

2014-06-30 Thread Justin Edelson
Hi Stefan, The big problem IMHO with injecting by class vs. name is that by class is too ambigious in many cases. For example, in AEM, it is relatively common to want to inject a Page object, but in fact there are two different page objects which come into play (currentPage and resourcePage) and

RE: [RT] Sling Models as scoped Dependency Injection Framework

2014-06-30 Thread Stefan Seifert
://issues.apache.org/jira/browse/SLING-3718 stefan -Original Message- From: justinedel...@gmail.com [mailto:justinedel...@gmail.com] On Behalf Of Justin Edelson Sent: Monday, June 30, 2014 6:16 PM To: dev@sling.apache.org Subject: Re: [RT] Sling Models as scoped Dependency Injection Framework Hi