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 2FBC39C7E for ; Tue, 3 Jan 2012 21:17:21 +0000 (UTC) Received: (qmail 11562 invoked by uid 500); 3 Jan 2012 21:17:21 -0000 Delivered-To: apmail-incubator-deltaspike-dev-archive@incubator.apache.org Received: (qmail 11523 invoked by uid 500); 3 Jan 2012 21:17:21 -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 11515 invoked by uid 99); 3 Jan 2012 21:17:20 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 03 Jan 2012 21:17:20 +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.161.175 as permitted sender) Received: from [209.85.161.175] (HELO mail-gx0-f175.google.com) (209.85.161.175) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 03 Jan 2012 21:17:16 +0000 Received: by ggnh1 with SMTP id h1so10043919ggn.6 for ; Tue, 03 Jan 2012 13:16:56 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :content-type; bh=6wlIEPZzHxoTrrARgYO6joGoR3ece2aKlx3eogmEx9I=; b=wTF4lqDmNAaU4dRUhF2u8P6vwoqo5RRJFBR1clqN9jkpBetsaHu4oHivJnP51MGXvA FeMtzaT1wkf6OT5tD5N79oYoNc3oPL9LCo1P4AE+lTcsCYydE4FYIZgtUEEScQKV6XDf q5bZc0qef7hTZ0+66O90/SuSh302cvz8T2vQU= Received: by 10.236.123.108 with SMTP id u72mr68666680yhh.45.1325625416157; Tue, 03 Jan 2012 13:16:56 -0800 (PST) MIME-Version: 1.0 Received: by 10.236.202.227 with HTTP; Tue, 3 Jan 2012 13:16:35 -0800 (PST) In-Reply-To: References: <1325499203.83049.YahooMailNeo@web27805.mail.ukl.yahoo.com> From: Gerhard Petracek Date: Tue, 3 Jan 2012 22:16:35 +0100 Message-ID: Subject: Re: [DISCUSS] [DELTASPIKE-6] ProjectStageActivated To: deltaspike-dev@incubator.apache.org Content-Type: multipart/alternative; boundary=20cf301b657b0908ca04b5a63892 --20cf301b657b0908ca04b5a63892 Content-Type: text/plain; charset=ISO-8859-1 hi jason, we are currently discussing an alternative approach (see the discussion about ExpressionActivated). since this approach would merge 3 features, it might be useful to start a new thread. regards, gerhard 2012/1/3 Jason Porter > +1 to @ProjectStageActivated > > On Mon, Jan 2, 2012 at 03:13, Mark Struberg wrote: > > > In practice @ProjectStageActivated was quite a killer feature which was > > used _very_ often. > > > > In big projects you pretty often have the situation that you need to do > > quite a few things different in the UnitTests, on the internal test > servers > > and on prodution servers! > > > > > > We for example just mocked our MailService out with a > > > > @ProjectStageActivated(UnitTest.class) @Alternative public class > > DummyMailService > > > > > > which just logs the mails instead trashing our real mail servers... > > > > We also switch between different authentication implementations for our > > test servers and production. > > > > > > LieGrue, > > strub > > > > > > ----- Original Message ----- > > > From: John D. Ament > > > To: deltaspike-dev@incubator.apache.org > > > Cc: > > > Sent: Monday, January 2, 2012 2:14 AM > > > Subject: Re: [DISCUSS] [DELTASPIKE-6] ProjectStageActivated > > > > > > My personal preference is against any behavior based on project stage. > > > ends up with some bad developer coding (at least my experience at the > > > enterprise level). > > > However, I do not think we should remove the feature due to this. > > Focusing > > > on just the name, I think anything -ed makes sense for CDI integration, > > so > > > +1 for ProjectStageActivated > > > > > > On Sun, Jan 1, 2012 at 7:55 PM, Gerhard Petracek < > > gerhard.petracek@gmail.com > > >> wrote: > > > > > >> hi, > > >> > > >> christian sent his opinion about the name. > > >> > > >> @others: > > >> please also send your opinion. > > >> > > >> thx & regards, > > >> gerhard > > >> > > >> > > >> > > >> 2011/12/20 Christian Kaltepoth > > >> > > >> > +1 for the basic concept > > >> > +0 for the annotation name. We could think about an alternative. > > >> > > > >> > > > >> > 2011/12/20 Marius Bogoevici : > > >> > > +1 > > >> > > > > >> > > On 2011-12-19, at 8:13 AM, Gerhard Petracek wrote: > > >> > > > > >> > >> hi @ all, > > >> > >> > > >> > >> fyi: please check [1] before you answer. > > >> > >> > > >> > >> [2] provides a short introduction as well as the basic usage. > > >> > >> > > >> > >> the basic concept: > > >> > >> via the annotation @ProjectStageActivated it's possible > > > to veto bean > > >> > >> implementations based on the current project-stage [3]. > > >> > >> > > >> > >> please send > > >> > >> +1, +0 or -1 because... > > >> > >> for the basic idea as well as the basic concept. > > >> > >> if there are >basic< objections, please also add them > > > to [4] > > >> > >> > > >> > >> regards, > > >> > >> gerhard > > >> > >> > > >> > >> [1] http://markmail.org/message/7yefspfuvtz4jvmp > > >> > >> [2] > > >> > >> > > >> > > > >> > > > > > > https://cwiki.apache.org/confluence/display/EXTCDI/Core+Usage#CoreUsage-@ProjectStageActivated > > >> > >> [3] http://s.apache.org/5hw > > >> > >> [4] > > >> > >> > > >> > > > >> > > > https://cwiki.apache.org/confluence/display/DeltaSpike/SE+Feature+Ranking > > >> > > > > >> > > > >> > > > >> > > > >> > -- > > >> > Christian Kaltepoth > > >> > Blog: http://chkal.blogspot.com/ > > >> > Twitter: http://twitter.com/chkal > > >> > > > >> > > > > > > > > > -- > Jason Porter > http://lightguard-jp.blogspot.com > http://twitter.com/lightguardjp > > Software Engineer > Open Source Advocate > Author of Seam Catch - Next Generation Java Exception Handling > > PGP key id: 926CCFF5 > PGP key available at: keyserver.net, pgp.mit.edu > --20cf301b657b0908ca04b5a63892--