cxf-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Daniel Kulp <dk...@apache.org>
Subject Re: An annotation utility I thought we would have
Date Thu, 01 Dec 2011 16:56:44 GMT
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