Return-Path: X-Original-To: apmail-uima-user-archive@www.apache.org Delivered-To: apmail-uima-user-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id A8059E2EA for ; Tue, 20 Nov 2012 15:50:55 +0000 (UTC) Received: (qmail 23707 invoked by uid 500); 20 Nov 2012 15:50:55 -0000 Delivered-To: apmail-uima-user-archive@uima.apache.org Received: (qmail 23424 invoked by uid 500); 20 Nov 2012 15:50:53 -0000 Mailing-List: contact user-help@uima.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: user@uima.apache.org Delivered-To: mailing list user@uima.apache.org Received: (qmail 23317 invoked by uid 99); 20 Nov 2012 15:50:51 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 20 Nov 2012 15:50:51 +0000 X-ASF-Spam-Status: No, hits=-0.0 required=5.0 tests=RCVD_IN_DNSWL_NONE,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of msa@schor.com designates 67.18.21.24 as permitted sender) Received: from [67.18.21.24] (HELO gateway09.websitewelcome.com) (67.18.21.24) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 20 Nov 2012 15:50:44 +0000 Received: by gateway09.websitewelcome.com (Postfix, from userid 507) id 206757E0F632D; Tue, 20 Nov 2012 09:50:17 -0600 (CST) Received: from gator74.hostgator.com (gator74.hostgator.com [184.173.199.208]) by gateway09.websitewelcome.com (Postfix) with ESMTP id 00E2B7E0F62F8 for ; Tue, 20 Nov 2012 09:50:17 -0600 (CST) Received: from [129.34.20.23] (port=56215 helo=[9.2.211.172]) by gator74.hostgator.com with esmtpsa (TLSv1:DHE-RSA-CAMELLIA256-SHA:256) (Exim 4.80) (envelope-from ) id 1Taq5f-0002GU-2V for user@uima.apache.org; Tue, 20 Nov 2012 09:50:23 -0600 Message-ID: <50ABA6B9.2000101@schor.com> Date: Tue, 20 Nov 2012 10:50:17 -0500 From: Marshall Schor User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:16.0) Gecko/20121026 Thunderbird/16.0.2 MIME-Version: 1.0 To: user@uima.apache.org Subject: Re: Dependency injection support in UIMA References: In-Reply-To: X-Enigmail-Version: 1.4.6 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-AntiAbuse: This header was added to track abuse, please include it with any abuse report X-AntiAbuse: Primary Hostname - gator74.hostgator.com X-AntiAbuse: Original Domain - uima.apache.org X-AntiAbuse: Originator/Caller UID/GID - [47 12] / [47 12] X-AntiAbuse: Sender Address Domain - schor.com X-BWhitelist: no X-Source: X-Source-Args: X-Source-Dir: X-Source-Sender: ([9.2.211.172]) [129.34.20.23]:56215 X-Source-Auth: msa+schor.com X-Email-Count: 0 X-Source-Cap: bWlzY2hvcjttaXNjaG9yO2dhdG9yNzQuaG9zdGdhdG9yLmNvbQ== X-Virus-Checked: Checked by ClamAV on apache.org Hi, The next release of UIMA will have a facility that augments the existing methods of setting parameters with an additional one based on (a slight extension of) Java properties files. It's purpose is to collect into one spot all the parameter settings needed for a complex set of annotators. The original working discussion for this is on our wiki; I think what got implemented is close to that (but not exactly), see https://cwiki.apache.org/UIMA/configuring-uima-pipelines-externally-for-a-particular-run.html -Marshall On 11/20/2012 8:22 AM, Spico Florin wrote: > Hello! > I have a connection to data source (triplestore) that is used by > multiple annotators. With the current implementation of UIMA I have to > provide this connection in for all these annotators descriptors, making the > deployment very tedious when switching from one environment to another (for > example test env to production env). > I have read the posts from > http://comments.gmane.org/gmane.comp.apache.uima.general/3340 but still is > not clear for me how to handle the DI. Basically I would like to inject > this connection to all of annotators that need it from a single > configuration file, thus eliminating the mentioned inconvenience. > Can you please provide what is the best approach for handling this kind > of problems? > > I look forward for your answers. > > Regards, > Florin > > P.S. I was thinking to use Spring and ApplicationContext and its > configuration file. Is this a suitable solution? >