users@jersey.java.net

Re: [Jersey] AbstractResources

From: Cameron Jones <cmhjones_at_gmail.com>
Date: Sat, 3 Oct 2009 10:08:42 +1000

Hi Paul,

I'm looking to build a resource's navigation from the declared sub
resource paths, since these are the uri templates it seems like i can
get the names from here to keep things DRY?

i'm not sure if there are other use cases but this kind of meta-data
is very useful tho i don't know whether you would want to support it
as a main jersey feature.

it reminds me of some of the hibernate meta-classes which it generated
from hbm.xml files - these used to be really useful before i switched
to JPA and lost interest in the guts of ORM :)

maybe you know of some generic annotations runtime meta-data thingy? i
need to brush up on this stuff...

thanks,
cam


On 02/10/2009, at 9:26 PM, 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
>