cxf-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Benson Margulies <bimargul...@gmail.com>
Subject Re: An annotation utility I thought we would have
Date Thu, 01 Dec 2011 17:08:12 GMT
Doesn't help with methods, only with classes. But that still is less
code to write than nothing at all.

On Thu, Dec 1, 2011 at 11:56 AM, Daniel Kulp <dkulp@apache.org> wrote:
> On Thursday, December 01, 2011 11:48:45 AM Benson Margulies wrote:
>> I'm a bit surprised that org.apache.cxf.jaxrs.utils.AnnotationUtils
>> does not have a method that says:
>>
>> "Here's a method and an annotation. If the method has the annotation,
>> return it. Otherwise, go to the containing class, and it's parents, in
>> search of it."
>>
>> Is there something I'm missing which would make this a bad idea?
>
> Probably something useful to add to ReflectionUtil.
>
> That said, you should also ask yourself if  the annotation itself just have
> @Inherited on it and whether that would be enough or not?
>
>
> --
> Daniel Kulp
> dkulp@apache.org - http://dankulp.com/blog
> Talend Community Coder - http://coders.talend.com

Mime
View raw message