[
https://issues.apache.org/jira/browse/SLING-2938?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13696664#comment-13696664
]
Bertrand Delacretaz edited comment on SLING-2938 at 7/1/13 9:18 AM:
--------------------------------------------------------------------
I have committed a prototype to my whiteboard, to test it build
https://svn.apache.org/repos/asf/sling/whiteboard/bdelacretaz/adapter-methods/sling-api
and
https://svn.apache.org/repos/asf/sling/whiteboard/bdelacretaz/adapter-methods/extensions-adapter
(both modules overwrite the current Sling trunk snapshots, make sure to rebuild
the trunk ones after testing)
The AdapterMethodManagerIT [1] contains two examples of services that provide
AdapterMethods.
TODO:
* Do not activate http service in pax exam tests
* Make sure the AdapterMethods are listed in the corresponding webconsole plugin
* When testing, pax exam should take the current bundle from the filesystem,
not Maven repo (it might not be updated there yet)
[1]
https://svn.apache.org/repos/asf/sling/whiteboard/bdelacretaz/adapter-methods/extensions-adapter/src/test/java/org/apache/sling/adapter/internal/AdapterMethodManagerIT.java
was (Author: bdelacretaz):
I have committed a prototype to my whiteboard, to test it build
https://svn.apache.org/repos/asf/sling/whiteboard/bdelacretaz/adapter-methods/sling-api
and
https://svn.apache.org/repos/asf/sling/whiteboard/bdelacretaz/adapter-methods/extensions-adapter
(both modules overwrite the current Sling trunk snapshots, make sure to rebuild
the trunk ones after testing)
The AdapterMethodManagerIT contains two examples of services that provide
AdapterMethods.
TODO:
* Do not activate http service in pax exam tests
* Make sure the AdapterMethods are listed in the corresponding webconsole plugin
* When testing, pax exam should take the current bundle from the filesystem,
not Maven repo (it might not be updated there yet)
> 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