Return-Path: X-Original-To: apmail-cxf-dev-archive@www.apache.org Delivered-To: apmail-cxf-dev-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id B36997417 for ; Thu, 1 Dec 2011 17:08:38 +0000 (UTC) Received: (qmail 89912 invoked by uid 500); 1 Dec 2011 17:08:38 -0000 Delivered-To: apmail-cxf-dev-archive@cxf.apache.org Received: (qmail 89804 invoked by uid 500); 1 Dec 2011 17:08:38 -0000 Mailing-List: contact dev-help@cxf.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@cxf.apache.org Delivered-To: mailing list dev@cxf.apache.org Received: (qmail 89796 invoked by uid 99); 1 Dec 2011 17:08:38 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 01 Dec 2011 17:08:38 +0000 X-ASF-Spam-Status: No, hits=-0.7 required=5.0 tests=FREEMAIL_FROM,RCVD_IN_DNSWL_LOW,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of bimargulies@gmail.com designates 74.125.83.41 as permitted sender) Received: from [74.125.83.41] (HELO mail-ee0-f41.google.com) (74.125.83.41) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 01 Dec 2011 17:08:33 +0000 Received: by eekc14 with SMTP id c14so1653405eek.0 for ; Thu, 01 Dec 2011 09:08:12 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type:content-transfer-encoding; bh=awKhMVUUZ1t01gckjyZO1WDk7KnSolGyaYrOBq2/bOA=; b=Eo+nwHOHJ8chVgUnhdJo6T9YXRR4vdGdvGzrqYgJCt/2kH5nnjZgjMLnEdX/t/7JVR zXDz6FZ6z1vUg0k9S+0Km1rQaPrr37GmNosZysL1Cv0siIBBNAObddm0As1044xVGo8K DbpYYDZsI+jkghWsBvRzpjrfsBG2h/XS5ZOds= MIME-Version: 1.0 Received: by 10.227.206.144 with SMTP id fu16mr3252449wbb.23.1322759292299; Thu, 01 Dec 2011 09:08:12 -0800 (PST) Received: by 10.180.105.195 with HTTP; Thu, 1 Dec 2011 09:08:12 -0800 (PST) In-Reply-To: <3729792.Hp3hgcDe6Z@dilbert.dankulp.com> References: <3729792.Hp3hgcDe6Z@dilbert.dankulp.com> Date: Thu, 1 Dec 2011 12:08:12 -0500 Message-ID: Subject: Re: An annotation utility I thought we would have From: Benson Margulies To: Daniel Kulp Cc: dev@cxf.apache.org, Sergey Beryozkin Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable 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 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 =C2=A0the annotation itself ju= st 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