Return-Path: X-Original-To: apmail-cxf-users-archive@www.apache.org Delivered-To: apmail-cxf-users-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 86D9F8537 for ; Tue, 30 Aug 2011 11:50:00 +0000 (UTC) Received: (qmail 90097 invoked by uid 500); 30 Aug 2011 11:49:59 -0000 Delivered-To: apmail-cxf-users-archive@cxf.apache.org Received: (qmail 89933 invoked by uid 500); 30 Aug 2011 11:49:59 -0000 Mailing-List: contact users-help@cxf.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: users@cxf.apache.org Delivered-To: mailing list users@cxf.apache.org Received: (qmail 89925 invoked by uid 99); 30 Aug 2011 11:49:58 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 30 Aug 2011 11:49:58 +0000 X-ASF-Spam-Status: No, hits=4.0 required=5.0 tests=FREEMAIL_FROM,FREEMAIL_REPLY,HTML_MESSAGE,RCVD_IN_DNSWL_LOW,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of rajfloyd@gmail.com designates 209.85.160.169 as permitted sender) Received: from [209.85.160.169] (HELO mail-gy0-f169.google.com) (209.85.160.169) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 30 Aug 2011 11:49:53 +0000 Received: by gyg10 with SMTP id 10so2402940gyg.0 for ; Tue, 30 Aug 2011 04:49:32 -0700 (PDT) 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; bh=Eg3ylUkui1QuEoK8ucQUweAIyoc8vUnSVJvA3X3Vlv0=; b=SI9Xc/c3WKSPDKJ/hbbcYgvb9RJJCBAkQr0zGSD4XU5DrRqDJDcWt+a59tRSs+bLyf Ru7Dc4zE08vGPo4jhFotsKlaCwgW/IPYt3N3+cwqPGjFc16SjxKsiwBN4Z3jJgGwXEkP 8mT6msdvoTpB+H+PhOzTWhk5zlVA4/dbi+CDk= MIME-Version: 1.0 Received: by 10.143.78.13 with SMTP id f13mr2964923wfl.174.1314704971932; Tue, 30 Aug 2011 04:49:31 -0700 (PDT) Received: by 10.143.39.1 with HTTP; Tue, 30 Aug 2011 04:49:31 -0700 (PDT) In-Reply-To: <14139341.7Dhy71vkoB@dilbert.dankulp.com> References: <4E5B0104.40703@gmail.com> <14139341.7Dhy71vkoB@dilbert.dankulp.com> Date: Tue, 30 Aug 2011 17:19:31 +0530 Message-ID: Subject: Re: CXF Feature and Interceptor From: Raj Floyd To: Daniel Kulp Cc: users@cxf.apache.org Content-Type: multipart/alternative; boundary=000e0cd2a12ed6255b04abb79a0d X-Virus-Checked: Checked by ClamAV on apache.org --000e0cd2a12ed6255b04abb79a0d Content-Type: text/plain; charset=ISO-8859-1 Thanks Dan. It helped. On Mon, Aug 29, 2011 at 5:47 PM, Daniel Kulp wrote: > On Monday, August 29, 2011 12:10:08 PM Raj Floyd wrote: > > And therefore it is appropriate to say that Features alwayz use > > Interceptors. A kind of an abstraction over interceptors. > > Well, it doesn't HAVE to use interceptors at all. It could do other > things > like configure properties instead. For example, an "MTOM" feature could > just set the "mtom-enabled" property on the endpoint. > > Basically, the Features provide a simple way to perform or configure a > series > or related tasks or activities. That can include things like adding a > bunch > of interceptors to the chain, configuring properties, setting up resources, > etc... > > In general, if a unit of usable functionality requires more than a few > steps > by the user to really configure and activate, creating a feature to > encapsulate that is generally a good idea. > > > Dan > > > > > > On Mon, Aug 29, 2011 at 8:31 AM, Willem Jiang >wrote: > > > It will be hard if you has a bunch of interceptors to configure. > > > CXF Feature gives you a way to configure the interceptors into Server, > > > Client or Bus easily. > > > > > > If you just has one Interceptor need to be use, you don't need to use > > > the > > > feature :) > > > > > > On 8/28/11 6:54 PM, Raj Floyd wrote: > > >> Hi, > > >> Are Features an abstraction over Interceptors? Like the doc gives an > > >> example > > >> of LoggingFeature that in turn uses interceptors to implement logging. > > >> So when should I use a Feature and Interceptor? > > >> Thanks. > > >> Raj > > > > > > -- > > > Willem > > > ------------------------------**---- > > > FuseSource > > > Web: http://www.fusesource.com > > > Blog: > > > http://willemjiang.blogspot.**com >(Engl > > > ish)> > > > http://jnn.javaeye.com (Chinese) > > > > > > Twitter: willemjiang > > > Weibo: willemjiang > -- > Daniel Kulp > dkulp@apache.org > http://dankulp.com/blog > Talend - http://www.talend.com > --000e0cd2a12ed6255b04abb79a0d--