Hi

Thanks all for the feedback.

The original patch didn't demonstrate the intended integration in
Sling and how Jax-Rs style classes can fit in well into the Sling
architecture but provide an alternative to servblets allowing to write
application in a more elegant way.

I've therefore added a new patch [1] with a bundle supporting jax-rs
and "sling-rs" resource classes. These are classes that have jax-rs
style resource methods but that are bound to type of path the normal
sling way. These resource classes do not need a Path-Annotation and
don't support methods with @Path annotations, but they do support
injections of arguments and conversion of the result object to the
appropriate media-type using providers. See the examples
SimpleSlingRootResource.java and OOSlingRootResource.java in
samples/slingrs.

Cheers,
Reto

1. 
https://issues.apache.org/jira/secure/attachment/12492153/SLING-2192-with-sling-style-style-registration.patch

Reply via email to