Hi Craig,
I agree that annotations often provide improved productivity. From a perspective of a Jersey development team member, we expose the programmatic resource model APIs for those who do want to develop RESTful services, but JAX-RS annotations are too limiting for their (dynamic) use cases. So, we see the API as a dynamic complement to the static annotation-based JAX-RS API. These proprietary Jersey APIs are not internal - they are public. Some of them may even be used as a basis for future JAX-RS API extensions.
Marek
On 03 Jan 2014, at 07:13, Craig McClanahan <craigmcc_at_gmail.com> wrote:
> Inquiring minds would like to know ... why in the world would you want to tie yourself so closely to the internal APIs of one particular JAX-RS implementation. Indeed, why bother with JAX-RS if you don't like the annotations -- that is a key value add for developer productivity.
>
> Craig McClanahan
>
>
> On Thu, Jan 2, 2014 at 6:53 PM, Imran Bashir <imran_1981_at_aol.com> wrote:
> Hi Bill,
>
> Thank you for your e-mail. Could you please provide me some example that would be great.
>
> Sincerely
> Imran
> Sent from AOL Mobile Mail
>
>
>
> -----Original Message-----
> From: Bill O'Neil <oneil5045_at_gmail.com>
> To: users <users_at_jersey.java.net>
> Sent: Thu, Jan 2, 2014 03:35 PM
> Subject: [Jersey] Re: Jersey without Annotations
>
>
> You can bind Resources programmatically without using annotations. https://jersey.java.net/documentation/latest/user-guide.html#d0e2435
>
> If you want to work directly with the Request, Response objects you should be able to do this. It will be a little more trouble to get cookie, header, path, and query parameters. It should be doable though.
>
>
> On Thu, Jan 2, 2014 at 4:30 PM, Imran Bashir <imran_1981_at_aol.com> wrote:
> Hi Everyone,
> I wanted to know can I develop a rest web service using Jersey without Annotation.
> Sincerely
> Imran
>
>