users@jersey.java.net

Re: [Jersey] AbstractResources

From: António Mota <amsmota_at_gmail.com>
Date: Sun, 04 Oct 2009 21:39:19 +0100

Be aware of what Paul said, the IntrospectionModeller is not part of the
public API so if you use it you have to be prepared for a eventual break
in the future.

I don't have any links or pointers, I had to do everything just by
looking at the code and do things myself (with the help of this list, I
suggest you look at the threads I initiated, they are probably about that).

I think it will be very interesting if Jersey at some point decided to
support other protocols (or at least to decouple the HTTP stuff from the
REST stuff), but that is probably a too much big refactoring of their
code by now. If they decide to do it I would be happy to contribute as I
have a clear idea of what I did to implement that decoupling.

If you have some specific questions in the future feel free to ask,
preferably on the list to go to the archives, maybe it will be useful to
other people as well.

Cheers.


Cameron Jones wrote:
> Thanks António! That's just what i was looking for!
>
> I think i might end up running into some of the same issues that you
> have as i have to start supporting FTP and other protocols soon.
>
> If you have any links or pointers they would be most appreciated!
>
> Thanks,
> cam
>
>
> On 02/10/2009, at 10:59 PM, António Mota wrote:
>
>> Hmm, that is strange, because I'm actually using *a lot* of the
>> AbstractResource capabilities, accessing it by using
>>
>> this.abstractResource =
>> IntrospectionModeller.createResource(this.componentInterface);
>>
>> ("this" is my ResourceImpl)
>>
>> I must even say that practically all our work with Jersey is based on
>> this...
>>
>>
>>
>> Paul Sandoz wrote:
>>> Hi Cameron,
>>>
>>> Can you describe a bit about what you would like to do?
>>>
>>> On Oct 2, 2009, at 12:19 PM, Cameron Jones wrote:
>>>
>>>> Hi,
>>>>
>>>> I'm not very familiar with annotations processing or the jersey
>>>> implementation, is there an easy way to access a resource's
>>>> annotations?
>>>>
>>>> The AbstractResource class has the kind of methods i am looking for
>>>> but is it accessible to resources?
>>>>
>>>
>>> There is currently no publicly available functionality to obtain the
>>> AbstractResource from a resource class. Such functionality would be
>>> very easy to expose. But it would help if i can understand what you
>>> use-case is.
>>>
>>> Paul.
>>>
>>> ---------------------------------------------------------------------
>>> To unsubscribe, e-mail: users-unsubscribe_at_jersey.dev.java.net
>>> For additional commands, e-mail: users-help_at_jersey.dev.java.net
>>>
>>
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: users-unsubscribe_at_jersey.dev.java.net
>> For additional commands, e-mail: users-help_at_jersey.dev.java.net
>>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe_at_jersey.dev.java.net
> For additional commands, e-mail: users-help_at_jersey.dev.java.net
>