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 2013/07/01 11:19:20 UTC
[jira] [Updated] (SLING-2938) AdapterMethods annotation and adapter
proxy service
[ https://issues.apache.org/jira/browse/SLING-2938?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Bertrand Delacretaz updated SLING-2938:
---------------------------------------
Description:
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
was:
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 Long toLong(SomeAdapter s) {
return s.longValue();
}
}
As this requires changes to the sling.api bundle, I'll commit to my whiteboard first, for review
> 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
>
> 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 is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira