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 22B87DF61 for ; Fri, 12 Oct 2012 06:38:48 +0000 (UTC) Received: (qmail 21190 invoked by uid 500); 12 Oct 2012 06:38:48 -0000 Delivered-To: apmail-incubator-deltaspike-dev-archive@incubator.apache.org Received: (qmail 21037 invoked by uid 500); 12 Oct 2012 06:38:46 -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 21027 invoked by uid 99); 12 Oct 2012 06:38:46 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 12 Oct 2012 06:38:46 +0000 X-ASF-Spam-Status: No, hits=0.7 required=5.0 tests=RCVD_IN_DNSWL_NONE,SPF_NEUTRAL X-Spam-Check-By: apache.org Received-SPF: neutral (nike.apache.org: local policy) Received: from [77.238.189.59] (HELO nm2.bullet.mail.ird.yahoo.com) (77.238.189.59) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 12 Oct 2012 06:38:38 +0000 Received: from [77.238.189.49] by nm2.bullet.mail.ird.yahoo.com with NNFMP; 12 Oct 2012 06:38:16 -0000 Received: from [212.82.108.126] by tm2.bullet.mail.ird.yahoo.com with NNFMP; 12 Oct 2012 06:38:16 -0000 Received: from [127.0.0.1] by omp1035.mail.ird.yahoo.com with NNFMP; 12 Oct 2012 06:38:16 -0000 X-Yahoo-Newman-Property: ymail-3 X-Yahoo-Newman-Id: 718057.50565.bm@omp1035.mail.ird.yahoo.com Received: (qmail 48172 invoked by uid 60001); 12 Oct 2012 06:38:16 -0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.de; s=s1024; t=1350023896; bh=eOhsShe9eIA+MEM+VQI/P9XHtzuvXp+qrxstWh4rvuc=; h=X-YMail-OSG:Received:X-Rocket-MIMEInfo:X-Mailer:References:Message-ID:Date:From:Reply-To:Subject:To:In-Reply-To:MIME-Version:Content-Type:Content-Transfer-Encoding; b=Lr5ygKV87Vei8AYQPYcl7rlG7Tnr4IiEuARZ2o5JnjsqIHQpIc8NKAfPE+anB73E6fU8+SW6Rj4rrmbbt//0fyUQfOiRh1Afgk30MR/U2b9c7PFBJNQ88W21EMDDDulu89oFuvlhLhOApCG4lIWiBZUs1XL38fYNPxqH9VgS854= DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=s1024; d=yahoo.de; h=X-YMail-OSG:Received:X-Rocket-MIMEInfo:X-Mailer:References:Message-ID:Date:From:Reply-To:Subject:To:In-Reply-To:MIME-Version:Content-Type:Content-Transfer-Encoding; b=VlRRxdDg6/3Z0QLTs8jLXS1olW6ysOUxVp9YoKVRDP8t5u1b6Rx10C8xf+Qs+6h5GefbBuJLWy+cCd8JxfhSmm5dYz/a9TnGsbJApwnuZOZFCGbBw2edDhDclxKv3tMGln/kX9fVUuA7lfAoJfDgskUhgsFFFcYRfNsclVt9JW8=; X-YMail-OSG: c64oPrcVM1mcXv_SQYPnX4jurBkt_EAYUi7khutRcz.z2Vw N6D8CM0Z1AM_SObS3xCHRVk5hphbjPsxhN7UhbEDbVrLPvtrfYM7J0U44QM2 DenZxHapAiduM0tfZKRYAeYTNh3g6XpF8bMMWljLfhB9SWfktSkawmLt89gA dyG2euGVew56w2eqXAgnyfJSgFSTAxUsxdYr.q7lLuot2OwWwTh5S0j55XiM qHWiMtvD2gewV7QKVlc1dnwmc2pu84fgeOdFi5oQ5nONIH587mAfrVVZA95q Jv9NVcdfn8gNpd8OaAxAbWQivJ7ahZRenMvY63vOFdQBRyUGD1Z3Fzm5IRdt VUq1IIqZBMLxly_dCaMgRyrOOKLvlc18JdBGbNgS3cJdzOZwuTgKNby_0YpC cf1gA2wvHUaYrVk26GIaNYJvBiB8m5mX2tEPA5WV01Yb266eCoeQaFuAqx1A LA6KyUE8hHctBGAPFEpYbem6RvuxLBJ_MiEaw06ENCu_vupREABaXGQMBYA8 alGkk5HCMo7Gu1hXo4fN8VKI.HIs9YgBDxT3.4L0z_HNG7DXRehywwqZTNOs xkwhwAq3y8.b7xthjWOP5eYk0SaPXxf1z5VrNmngFxez0S_PzUwzxcNHUU_a SVKV7h6qLaHrz7qR8RiCKcaMFquN6AFuMLCOgwbF49syTzC9ZCjzDjAP6W7q eyZowNZvjH46QH4kPquYSe_vW3gjkwHIA01UrSKZo9YKM9wwcp5RoUhqhXu3 MyT2U1UIvWuwREpMZd3sqz6FcVridTesyrQJOOTwhmjfZSC227Ts3zUDiq0w 512TDzAwS24oZpiPx8oHLKW_SJE_ZRzIvxVZMkTJ7OrWzB18UKL9agJg4Zh3 0tGyeqxJFWpIaCFF1Q_.LiD4erNiS55_epBJnYMtotKC3UerMpQ-- Received: from [128.131.32.160] by web28905.mail.ir2.yahoo.com via HTTP; Fri, 12 Oct 2012 07:38:16 BST X-Rocket-MIMEInfo: 001.001,d2VsbCwgdGhlcmUgaXMgYW4gaW1wb3J0YW50IGRpc3RpbmN0aW9uIGJldHdlZW4gY3JlYXRpbmcgbmV3IGJlYW5zIGZvciBjbGFzc2VzIHdoaWNoIGFyZSBpbiBhIEJEQSBhbmQgb3RoZXJzIHdobyBkb24ndC4KCkluIENESS0xLjAgaXQncyBub3QgZGVmaW5lZCB3aGF0IGhhcHBlbnMgaWYgeW91IGRvIEJlZm9yZUJlYW5EaXNjb3ZlcnkjYWRkQW5ub3RhdGVkVHlwZSBmb3IgYSBjbGFzcyB3aGljaCBpcyBhbHJlYWR5IGluIGEgQkRBIGFuZCB3b3VsZCBnZXQgcGlja2VkIHVwIGF1dG9tYXRpY2FsbHkuIFNvbWUBMAEBAQE- X-Mailer: YahooMailWebService/0.8.123.450 References: <3791B416-D517-4D5F-BBFC-001A6DB9C5CC@redhat.com> <1349990520.79428.YahooMailNeo@web28904.mail.ir2.yahoo.com> <50774FBD.9030902@redhat.com> Message-ID: <1350023896.47250.YahooMailNeo@web28905.mail.ir2.yahoo.com> Date: Fri, 12 Oct 2012 07:38:16 +0100 (BST) From: Mark Struberg Reply-To: Mark Struberg Subject: Re: Seam XML config To: "deltaspike-dev@incubator.apache.org" In-Reply-To: <50774FBD.9030902@redhat.com> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: quoted-printable well, there is an important distinction between creating new beans for clas= ses which are in a BDA and others who don't.=0A=0AIn CDI-1.0 it's not defin= ed what happens if you do BeforeBeanDiscovery#addAnnotatedType for a class = which is already in a BDA and would get picked up automatically. Some conta= iners treat them as new bean information, others as default for the existin= g one. This only gets specified in CDI-1.1 where we also have a new event P= rocessSyntheticAnnotatedType (or so).=0A=0AThus I recommend allowing to add= annotatedTypes but only for classes which are not in a BDA (in other words= : they are in a jar without a beans.xml).=0A=0AStu, Shane, what do you thin= k about that solution? That should cover the most important use cases. All = features beyond that are not portable in CDI-1.0.=0A=0ALieGrue,=0Astrub=0A= =0A=0A=0A=0A----- Original Message -----=0A> From: Shane Bryzak =0A> To: deltaspike-dev@incubator.apache.org=0A> Cc: Jason Porter = ; Mark Struberg =0A> Sent: Frid= ay, October 12, 2012 1:01 AM=0A> Subject: Re: Seam XML config=0A> =0A> I th= ink we have to support creation of new beans.=A0 Take a look at [1], =0A> w= hich is a blog post on configuring Drools within Spring.=A0 A little way = =0A> down, under the sessions.xml heading he has an example showing a Drool= s =0A> configuration.=A0 We need to be able to support the same kind of =0A= > configuration with CDI.=0A> =0A> On 12/10/12 08:00, Jason Porter wrote:= =0A>> Great! Thanks Mark. Nothing really complicated here. I think the big= =0A>> question now, is being able to actually create new beans using the c= onfig,=0A>> or if we simply want to modify existing beans. For me personal= ly I'm -1 =0A> on=0A>> creating beans using config and +1 on modifying exi= sting beans.=0A>> =0A>> On Thu, Oct 11, 2012 at 3:22 PM, Mark Struberg =0A> wrote:=0A>> =0A>>> sure, check the readme:=0A>>> ht= tps://github.com/struberg/InterDyn=0A>>> =0A>>> LieGrue,=0A>>> strub=0A>>= > =0A>>> =0A>>> =0A>>> =0A>>> ----- Original Message -----=0A>>>> From: J= ason Porter =0A>>>> To: deltaspike-dev@incubator.= apache.org=0A>>>> Cc:=0A>>>> Sent: Thursday, October 11, 2012 10:58 PM=0A= >>>> Subject: Re: Seam XML config=0A>>>> =0A>>>> Mark, do you have an exa= mple for InterDyn (or whatever it's =0A> called?)=0A>>>> =0A>>>> We also n= eed to decide if we're going to allow creation of new =0A> beans or=0A>>>> = simply configure existing beans (adding / removing metadata) using =0A> th= is=0A>>>> configuration.=0A>>>> =0A>>>> On Fri, Sep 28, 2012 at 9:54 AM, = Pete Muir =0A> wrote:=0A>>>> =0A>>>>> =A0 Original insp= iration for xml came from Gavin's design for =0A> CDI 1.0. I=0A>>>> don't= =0A>>>>> =A0 know more details about why they went this direction.=0A>>>>>= =0A>>>>> =A0 On 25 Sep 2012, at 00:19, Jason Porter wrote:=0A>>>>> =0A>>>= >> =A0 > It did (maybe it still does), but at some point we =0A> decided t= hat=0A>>>> wasn't=0A>>>>> =A0 > recommended, I don't recall why though, p= erhaps =0A> Stuart or Pete=0A>>>> remembers.=0A>>>>> =A0 >=0A>>>>> =A0 >= On Mon, Sep 24, 2012 at 5:11 PM, Romain Manni-Bucau=0A>>>>> =A0 > wrote:=0A>>>>> =A0 >=0A>>>>> =A0 >> each time i read this= kind of conf i think it should =0A> be the=0A>>>> opposite=0A>>>>> =A0 >= >=0A>>>>> =A0 >> why not extending beans.xml (just in the spirit, not =0A>= in the same=0A>>>> file)=0A>>>>> =A0 >> adding etc?=0A>>>>>= =A0 >>=0A>>>>> =A0 >>=0A>>>>> =A0 >> *Romain Manni-Bucau*=0A>>>>> =A0 = >> *Twitter: @rmannibucau*=0A>>>>> =A0 >> *Blog: **http://rmannibucau.word= press.com/*<=0A>>>>> =A0 >> http://rmannibucau.wordpress.com/>=0A>>>>> =A0= >> *LinkedIn: **http://fr.linkedin.com/in/rmannibucau*=0A>>>>> =A0 >>=0A= >>>>> =A0 >>=0A>>>>> =A0 >>=0A>>>>> =A0 >>=0A>>>>> =A0 >> 2012/9/25 Jas= on Porter =0A> =0A>>>>> =A0 >>=0A>>>>> =A0 >>> I= 'm going to send probably the most =0A> comprehensive example=0A>>>> that = exists=0A>>>>> =A0 >> about=0A>>>>> =A0 >>> what Seam XML can do:=0A>>>>>= =A0 >>>=0A>>>>> =A0 >>>=0A>>>>> =A0 >>>=0A>>>>> =A0 >>=0A>>>>> =0A>>> = =0A> https://github.com/seam/config/blob/develop/examples/princess-rescue/s= rc/main/resources/META-INF/seam-beans.xml=0A>>>>> =A0 >>>=0A>>>>> =A0 >>>= You can also find the Java classes that back =0A> that config at=0A>>>>> = =A0 >>>=0A>>>>> =A0 >>>=0A>>>>> =A0 >>=0A>>>>> =0A>>> =0A> https://githu= b.com/seam/examples/tree/master/princess-rescue/src/main/java/org/jboss/sea= m/examples/princessrescue=0A>>>>> =A0 >>>=0A>>>>> =A0 >>> Mark, could you= give some examples of the stuff =0A> you would like=0A>>>> to see=0A>>>>>= =A0 as=0A>>>>> =A0 >>> well?=0A>>>>> =A0 >>>=0A>>>>> =A0 >>> --=0A>>>>= > =A0 >>> Jason Porter=0A>>>>> =A0 >>> http://lightguard-jp.blogspot.com= =0A>>>>> =A0 >>> http://twitter.com/lightguardjp=0A>>>>> =A0 >>>=0A>>>>> = =A0 >>> Software Engineer=0A>>>>> =A0 >>> Open Source Advocate=0A>>>>> = =A0 >>> Author of Seam Catch - Next Generation Java =0A> Exception Handlin= g=0A>>>>> =A0 >>>=0A>>>>> =A0 >>> PGP key id: 926CCFF5=0A>>>>> =A0 >>> P= GP key available at: keyserver.net, pgp.mit.edu=0A>>>>> =A0 >>>=0A>>>>> = =A0 >>=0A>>>>> =A0 >=0A>>>>> =A0 >=0A>>>>> =A0 >=0A>>>>> =A0 > --=0A>>= >>> =A0 > Jason Porter=0A>>>>> =A0 > http://lightguard-jp.blogspot.com=0A= >>>>> =A0 > http://twitter.com/lightguardjp=0A>>>>> =A0 >=0A>>>>> =A0 > = Software Engineer=0A>>>>> =A0 > Open Source Advocate=0A>>>>> =A0 > Author= of Seam Catch - Next Generation Java Exception =0A> Handling=0A>>>>> =A0 = >=0A>>>>> =A0 > PGP key id: 926CCFF5=0A>>>>> =A0 > PGP key available at: = keyserver.net, pgp.mit.edu=0A>>>>> =0A>>>>> =0A>>>> =0A>>>> --=0A>>>> Jas= on Porter=0A>>>> http://lightguard-jp.blogspot.com=0A>>>> http://twitter.= com/lightguardjp=0A>>>> =0A>>>> Software Engineer=0A>>>> Open Source Advo= cate=0A>>>> Author of Seam Catch - Next Generation Java Exception Handling= =0A>>>> =0A>>>> PGP key id: 926CCFF5=0A>>>> PGP key available at: keyserv= er.net, pgp.mit.edu=0A>>>> =0A>> =0A>> =0A>