Re: Sling Dynamic Proxy

2013-04-02 Thread Alexander Klimetschek
On 29.03.2013, at 20:14, Dan Klco dan.k...@sixdimensions.com wrote: @SlingProperty(name=”jcr:created”) public Date getCreationDate(); Is this really worth the additional complexity compared to the following? public Date getCreationDate() { return

Re: Sling Dynamic Proxy

2013-04-02 Thread Felix Meschberger
...@gmail.com [mailto:justinedel...@gmail.com] On Behalf Of Justin Edelson Sent: Friday, March 29, 2013 3:36 PM To: dev@sling.apache.org Subject: Re: Sling Dynamic Proxy Hi Dan, This looks very interesting, but I'm curious why this code: ISlingProxyService slingProxyService

Re: Sling Dynamic Proxy

2013-04-02 Thread Felix Meschberger
with annotations and interpreted by the Java Proxy InvocationHandler to map back to Sling Resources and properties. Here’s an example usage of the Sling Dynamic Proxy: public interface Page extends ISlingProxy { /** * Gets the property jcr:created

RE: Sling Dynamic Proxy

2013-04-02 Thread Dan Klco
to retrieve the data required. -Dan -Original Message- From: Alexander Klimetschek [mailto:aklim...@adobe.com] Sent: Tuesday, April 02, 2013 8:19 AM To: dev@sling.apache.org Subject: Re: Sling Dynamic Proxy On 29.03.2013, at 20:14, Dan Klco dan.k...@sixdimensions.com wrote

RE: Sling Dynamic Proxy

2013-04-02 Thread Dan Klco
Fair enough, I will go ahead and update the code to remove the I prefix to comply with project standards. Thanks, Dan -Original Message- From: Felix Meschberger [mailto:fmesc...@adobe.com] Sent: Tuesday, April 02, 2013 8:21 AM To: dev@sling.apache.org Subject: Re: Sling Dynamic Proxy

RE: Sling Dynamic Proxy

2013-04-02 Thread Dan Klco
@sling.apache.org Subject: Re: Sling Dynamic Proxy Hi Am 29.03.2013 um 21:18 schrieb Justin Edelson: Fixing/changing AdapterManager shouldn't be out of the question :) Absolutely: How about a special adaptable and adapter class name of * which just means any ? Regards Felix On Fri

Sling Dynamic Proxy

2013-03-29 Thread Dan Klco
usage of the Sling Dynamic Proxy: public interface Page extends ISlingProxy { /** * Gets the property jcr:created */ @SlingProperty(name=jcr:created) public Date getCreationDate

Re: Sling Dynamic Proxy

2013-03-29 Thread Justin Edelson
back to Sling Resources and properties. Here’s an example usage of the Sling Dynamic Proxy: public interface Page extends ISlingProxy { /** * Gets the property jcr:created

RE: Sling Dynamic Proxy

2013-03-29 Thread Dan Klco
[mailto:justinedel...@gmail.com] On Behalf Of Justin Edelson Sent: Friday, March 29, 2013 3:36 PM To: dev@sling.apache.org Subject: Re: Sling Dynamic Proxy Hi Dan, This looks very interesting, but I'm curious why this code: ISlingProxyService slingProxyService; {...} Page page

Re: Sling Dynamic Proxy

2013-03-29 Thread Justin Edelson
. Thanks for the feedback and please let me know if I missed something, -Dan -Original Message- From: justinedel...@gmail.com [mailto:justinedel...@gmail.com] On Behalf Of Justin Edelson Sent: Friday, March 29, 2013 3:36 PM To: dev@sling.apache.org Subject: Re: Sling Dynamic Proxy