[
https://issues.apache.org/jira/browse/SLING-2192?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13093276#comment-13093276
]
Reto Bachmann-Gmür commented on SLING-2192:
-------------------------------------------
Added a patch that adds support to "slingrs": jax-rs style resources that use
jax-features such argument injection and response processor. path contain
implementation and demo bundle.
Resources classes with the property sling.ws.rs set to true are bound the sling
way with the same annotations as the equivalent servlet. In the thread at
http://mail-archives.apache.org/mod_mbox/sling-dev/201108.mbox/%3CCAEWfVJ=TwX1cNoNpSCQ198vYfyspaTKwy_v9Ufxj4Nq=ff7...@mail.gmail.com%3E
supporting jax-rs has been seen as concurring with the sling way of doing
things, this patch shows how one can have sling-style binding and jax-rs
features that make writing application easier.
> Support JAX-RS resource classes
> -------------------------------
>
> Key: SLING-2192
> URL: https://issues.apache.org/jira/browse/SLING-2192
> Project: Sling
> Issue Type: New Feature
> Reporter: Reto Bachmann-Gmür
> Attachments: SLING-2192-new-jax-rs-bundle.patch,
> SLING-2192-new-jax-rs-bundle.patch,
> SLING-2192-with-sling-style-style-registration.patch
>
>
> It should be possible to register jax resource classes and providers as
> services. As they don't implement a specific interface services that expose
> java.lang.Object should be considered as javx-rs services iff they have the
> service property "javax.ws.rs" set to true.
--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira