You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@sling.apache.org by "Bertrand Delacretaz (JIRA)" <ji...@apache.org> on 2014/06/17 11:33:02 UTC
[jira] [Commented] (SLING-2938) AdapterMethods annotation and
adapter proxy service
[ https://issues.apache.org/jira/browse/SLING-2938?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14033606#comment-14033606 ]
Bertrand Delacretaz commented on SLING-2938:
--------------------------------------------
I'll restart the discussion about this on the dev list, see also http://markmail.org/message/ku6svfns46jvw5ik where we didn't really agree on whether the magic should happen at build time or runtime.
> AdapterMethods annotation and adapter proxy service
> ---------------------------------------------------
>
> Key: SLING-2938
> URL: https://issues.apache.org/jira/browse/SLING-2938
> Project: Sling
> Issue Type: Bug
> Components: Engine, Extensions
> Affects Versions: Adapter 2.1.0
> Reporter: Bertrand Delacretaz
> Priority: Minor
> Attachments: SLING-2938-api.patch, console.jpg
>
>
> Following up on an idea that Olaf Otto presented at CQCon last week, I've been working on an @AdapterMethod annotation that makes it easier to create Sling adapters, as in
> @Component
> @Service
> public class MyAdapters implements AdapterMethodProvider {
> @AdapterMethod
> public Bar toBar(Foo f) { ... adapt Foo to Bar ... }
> }
> As this requires changes to the sling.api bundle, I'll commit to my whiteboard first, for review
--
This message was sent by Atlassian JIRA
(v6.2#6252)