Return-Path: X-Original-To: apmail-incubator-deltaspike-dev-archive@minotaur.apache.org Delivered-To: apmail-incubator-deltaspike-dev-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 24C0FDB70 for ; Sat, 29 Dec 2012 18:46:52 +0000 (UTC) Received: (qmail 13209 invoked by uid 500); 29 Dec 2012 18:46:52 -0000 Delivered-To: apmail-incubator-deltaspike-dev-archive@incubator.apache.org Received: (qmail 13178 invoked by uid 500); 29 Dec 2012 18:46:51 -0000 Mailing-List: contact deltaspike-dev-help@incubator.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: deltaspike-dev@incubator.apache.org Delivered-To: mailing list deltaspike-dev@incubator.apache.org Received: (qmail 13169 invoked by uid 99); 29 Dec 2012 18:46:51 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 29 Dec 2012 18:46:51 +0000 X-ASF-Spam-Status: No, hits=1.5 required=5.0 tests=HTML_MESSAGE,RCVD_IN_DNSWL_LOW,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of gerhard.petracek@gmail.com designates 209.85.220.176 as permitted sender) Received: from [209.85.220.176] (HELO mail-vc0-f176.google.com) (209.85.220.176) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 29 Dec 2012 18:46:47 +0000 Received: by mail-vc0-f176.google.com with SMTP id fo13so11567147vcb.7 for ; Sat, 29 Dec 2012 10:46:26 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :content-type; bh=KROSuHIxOcon1K+yY6SRqKXTLrcJ/+qkXJNzT0CM27A=; b=dNZ/7ZaQharR5u/CaMEaLBxnf/pcGjvKyVuHjxrsLk5kSrnCm7TST/BQl47XJ0lLYP UcGNSGvVQmelcjmXRtxNiuwC1h6f7Dpkpp1nbMJ5IN6v34jxsdgBsUZ8NzwhlqZM5VRi xQ1Pts3kQc2fy4nsPS3AIkYCrXJwCCv9uop++lx6ph+KoBKhToZamHBuB6MoeiPjwMMa 5qdlWNyldViTfq7kKRbd9EQNFIMB0DW1Mx5Zea+9/TphljTeAAzPGaOTMuzmgwFIJH40 xpJnXnsCVts8n9eCbmTKDPQq9jIbtDCuvCOGB3zOYbz6EF8ZQaEaNicfWZTvKgQRVB6a G8PA== Received: by 10.220.40.135 with SMTP id k7mr55808526vce.12.1356806786438; Sat, 29 Dec 2012 10:46:26 -0800 (PST) MIME-Version: 1.0 Received: by 10.52.67.51 with HTTP; Sat, 29 Dec 2012 10:46:06 -0800 (PST) In-Reply-To: References: <50DE556C.1090800@yahoo.com.cn> <97621E8BA4D496449BC4D1AB06E0FB70057695@K99F-PEXC01.openknowledge.de> From: Gerhard Petracek Date: Sat, 29 Dec 2012 19:46:06 +0100 Message-ID: Subject: Re: How to replace and disable Interceptor at runtime. To: deltaspike-dev@incubator.apache.org Content-Type: multipart/alternative; boundary=bcaec54ee81288d55d04d20232ae X-Virus-Checked: Checked by ClamAV on apache.org --bcaec54ee81288d55d04d20232ae Content-Type: text/plain; charset=ISO-8859-1 i agree with jason (and that's also what we have done so far). regards, gerhard 2012/12/29 Jason Porter > Arne: I'm not quite sure I see the point in doing this. Interceptors in > Seam2 were completely different than in CDI. If you don't want an > interceptor, remove the annotation, or take it out of the beans.xml. > > I also don't see a use case for @BypassInterceptors. If there's a use case > for it, then we can consider it, but I don't want to start adding things to > DeltaSpike without clearly defined use cases. > > > On Sat, Dec 29, 2012 at 3:13 AM, Arne Limburg < > arne.limburg@openknowledge.de > > wrote: > > > Hi Hantsy, > > > > > > In general you could write an extension that modifies the AnnotatedType > to > > remove the annotation that declares the interceptor binding. > > > > @all We should think about supporting @BypassInterceptors in Deltaspike, > > wdyt? > > Not that I like this "feature" of Seam 2 that much (imho it works around > > some design flaws of Seam 2), but it would make a migration from Seam 2 > to > > Deltaspike much easier. > > > > Cheers, > > Arne > > > > Am 29.12.12 03:29 schrieb "hantsy" unter : > > > > >Thanks, gerhard. Is there a way to disable interceptors globally or > > >bypass some interceptors on certain managed beans? > > > > > >Hantsy > > > > > >On 12/28/2012 10:39, Gerhard Petracek wrote: > > >> hi hantsy, > > >> > > >> in deltaspike (and codi) we are using interceptor-strategies which > > >>allow to > > >> provide alternative (/specialized) interceptor-implementations (see > > >> org.apache.deltaspike.core.spi.InterceptorStrategy as well as the > usage > > >>of > > >> it). > > >> > > >> regards, > > >> gerhard > > >> > > >> > > >> > > >> 2012/12/28 hantsy > > >> > > >>> Hi all, > > >>> > > >>> I know there are some way to use alternative Managed Bean at runtime > in > > >>> CDI. but how to process Interceptor. > > >>> > > >>> 1. I want to use custom Interceptor(esp extended from the Interceptor > > >>> and provides some different behavior) instead of the one shipped by > > >>>some > > >>> framework/tools at runtime ? > > >>> > > >>> 2. How to disable an interceptor at runtime for one ManagedBean(like > > >>> Seam 2 bypass annotation), and disable it globally? > > >>> > > >>> > > >>> Hantsy > > >>> > > > > > > > > > > -- > Jason Porter > http://lightguard-jp.blogspot.com > http://twitter.com/lightguardjp > > Software Engineer > Open Source Advocate > > PGP key id: 926CCFF5 > PGP key available at: keyserver.net, pgp.mit.edu > --bcaec54ee81288d55d04d20232ae--