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 4E235106E1 for ; Wed, 23 Jul 2014 14:02:54 +0000 (UTC) Received: (qmail 62965 invoked by uid 500); 23 Jul 2014 14:02:54 -0000 Delivered-To: apmail-cxf-dev-archive@cxf.apache.org Received: (qmail 62900 invoked by uid 500); 23 Jul 2014 14:02:54 -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 62886 invoked by uid 99); 23 Jul 2014 14:02:53 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 23 Jul 2014 14:02:53 +0000 X-ASF-Spam-Status: No, hits=2.3 required=5.0 tests=SPF_SOFTFAIL,URI_HEX X-Spam-Check-By: apache.org Received-SPF: softfail (nike.apache.org: transitioning domain of irisdingbj@gmail.com does not designate 216.139.236.26 as permitted sender) Received: from [216.139.236.26] (HELO sam.nabble.com) (216.139.236.26) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 23 Jul 2014 14:02:52 +0000 Received: from [192.168.236.26] (helo=sam.nabble.com) by sam.nabble.com with esmtp (Exim 4.72) (envelope-from ) id 1X9x7j-00084H-8c for dev@cxf.apache.org; Wed, 23 Jul 2014 07:02:27 -0700 Date: Wed, 23 Jul 2014 07:02:27 -0700 (PDT) From: iris ding To: dev@cxf.apache.org Message-ID: <1406124147261-5746796.post@n5.nabble.com> In-Reply-To: <53CFA8FB.8010009@gmail.com> References: <1406010387292-5746712.post@n5.nabble.com> <1406107862280-5746783.post@n5.nabble.com> <53CFA8FB.8010009@gmail.com> Subject: Re: @context injection through setter method - method name restriction MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org According to spec in chapter 9, only below types are allowed to be injected via @context: Application UriInfo HttpHeaders Request SecurityContext Providers ResourceContext Configuration So we can add a check to make sure the parameterType is one of them. If it is other type we can just ignore it. any thoughts? Have CXF already supported all above types now? Iris Ding -- View this message in context: http://cxf.547215.n5.nabble.com/context-injection-through-setter-method-method-name-restriction-tp5746712p5746796.html Sent from the cxf-dev mailing list archive at Nabble.com.