Re: Flexible adaptable not resulting in instantiation of correct model

2019-06-12 Thread Paul Bjorkstrand
Reading this thread (and looking at the code) I agree with Julian - it is surprising that it does not work with the SlingModelsUseProvider, since it used to work with the JavaUseProvider. This piqued my interest, so I created a minimal implementation of this in [1]. [1]

ApacheCon North America 2019 Schedule Now Live!

2019-06-12 Thread Rich Bowen
Dear Apache Enthusiast, (You’re receiving this message because you’re subscribed to one or more Apache Software Foundation project user mailing lists.) We’re thrilled to announce the schedule for our upcoming conference, ApacheCon North America 2019, in Las Vegas, Nevada. See it now at

Re: Flexible adaptable not resulting in instantiation of correct model

2019-06-12 Thread Julian Sedding
Hi Liam Based on the fact that the @Self injection should provide a Resource object, I assume your model is adaptable from a Resource (it would help to provide the class including its @Model annotation). The way this feature is implemented, I assume that it does not work for adapting Resource

Re: Flexible adaptable not resulting in instantiation of correct model

2019-06-12 Thread Vlad Bailescu
Hi Liam, AFAIK, the mentioned pattern is not designed to work with Sling Models. It simply uses the adaptTo pattern to transform the adaptable to the given class. Best, Vlad On Tue, Jun 11, 2019 at 9:00 PM Liam C wrote: > Hello, > > Is anyone able to replicate this, or to confirm that they