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 5E93896AB for ; Tue, 10 Apr 2012 15:06:24 +0000 (UTC) Received: (qmail 36816 invoked by uid 500); 10 Apr 2012 15:06:24 -0000 Delivered-To: apmail-incubator-deltaspike-dev-archive@incubator.apache.org Received: (qmail 36787 invoked by uid 500); 10 Apr 2012 15:06:24 -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 36778 invoked by uid 99); 10 Apr 2012 15:06:24 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 10 Apr 2012 15:06:24 +0000 X-ASF-Spam-Status: No, hits=-0.7 required=5.0 tests=RCVD_IN_DNSWL_LOW,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of gudnabrsam@gmail.com designates 209.85.160.47 as permitted sender) Received: from [209.85.160.47] (HELO mail-pb0-f47.google.com) (209.85.160.47) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 10 Apr 2012 15:06:18 +0000 Received: by pbcum15 with SMTP id um15so71494pbc.6 for ; Tue, 10 Apr 2012 08:05:58 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:reply-to:in-reply-to:references:date:message-id :subject:from:to:content-type:content-transfer-encoding; bh=C/4yMNf6AiU9ITjkGIRKGimoPYcK605BFX2kDzupSPk=; b=Sshq1SzW4vXOSYCahweuITBK8vOz5bgO1JhH2fe608o0RAJeCz0UH+71SPT1kuy6wm 5pbqfOQbBasTuQiK6dAm+uDRKT+31X0qylwfPYPgtDu10/9ti7YApm3DmEsgJ8IUovIN igaxjfzIaXW2xezy/u20JZOandOAuuIVTeChnrmKa82rfu8uVmGB9f9QeQydKXhgNYA6 IRY2pFdWmwukoyWK/RcAh5a6RROO2CaxoQePYySS8+Hhbp5C2N2iRzWVI6P4o2+/jNY0 N5UxEhAbvtC0OJDrA9D1nbYdkEMPrDFxcDhYelwMWrAXB6QJjjHynTNwjZBsqAvh9g+t vDxA== MIME-Version: 1.0 Received: by 10.68.240.97 with SMTP id vz1mr397193pbc.125.1334070358249; Tue, 10 Apr 2012 08:05:58 -0700 (PDT) Received: by 10.68.26.41 with HTTP; Tue, 10 Apr 2012 08:05:58 -0700 (PDT) Reply-To: gudnabrsam@gmail.com In-Reply-To: References: Date: Tue, 10 Apr 2012 10:05:58 -0500 Message-ID: Subject: Re: DELTASPIKE-151 Provide lookup method with Map result From: Matt Benson To: deltaspike-dev@incubator.apache.org Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable X-Virus-Checked: Checked by ClamAV on apache.org >From my perspective in the peanut gallery, it would seem that providing mechanisms for not-necessarily-CDI-aware libraries to bridge to CDI is as much a part of deltaspike's declared scope as e.g. providing a Spring bridge. $0.02, Matt 2012/4/10 =C5=81ukasz Dywicki : > Hi all, > I would like to start discussion as sugested by Gerhard in his comment fo= r my issue. > > I created an issue to include a new method in BeanProvider class. Purpose= of method is to find all named references and return them in Map where key= is name and value is bean instance. Just to give short introduction to Cam= el - it is mediation library which allows to create complex integration log= ic with various DSL variants. With Camel you can do transformations, evalua= te different kind of expressions and so on. I think it is also worth to not= e that Camel supports multiple Dependency Injection containers - starting f= rom Spring and Guice up to Blueprint (OSGi specific). My goal is to provide= same level of support for CDI as Camel have for Spring. For example Camel = allows to inject Interceptors, error handlers and so on. To find these elem= ents Camel scans beans registry (which is customizable through SPI) for all= named references and use them. > > Most of you can identify the issue and path as Camel specific but I beliv= e it is not. This method can be requested by any other project. We just sta= rted to integrate our component with deltaspike before others. From proposa= l I know that your goal is to create "industry standard" set of extensions = for CDI. Previous version of camel-cdi had own BeanManagerProvider, BeanPro= vider classes, own AnyLiteral class and so on. I've found similar classes i= n your codebase so I wanted to use code written by you to simply avoid dupl= ication between various Apache repos. Only one part which was missing in De= ltaspike is named lookup result, which is not big deal to write and maintai= n. There is no external dependencies necessary to implement this method and= it can be implemented on top of current BeanProvider API. > > I think that cooperation with other projects can bring lots of benefits f= or deltaspike community with no cost from your side. > > Best regards, > Lukasz