From uima-user-return-781-apmail-incubator-uima-user-archive=incubator.apache.org@incubator.apache.org Thu Nov 01 21:37:16 2007 Return-Path: Delivered-To: apmail-incubator-uima-user-archive@locus.apache.org Received: (qmail 94047 invoked from network); 1 Nov 2007 21:37:16 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 1 Nov 2007 21:37:16 -0000 Received: (qmail 53447 invoked by uid 500); 1 Nov 2007 21:37:04 -0000 Delivered-To: apmail-incubator-uima-user-archive@incubator.apache.org Received: (qmail 53426 invoked by uid 500); 1 Nov 2007 21:37:04 -0000 Mailing-List: contact uima-user-help@incubator.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: uima-user@incubator.apache.org Delivered-To: mailing list uima-user@incubator.apache.org Received: (qmail 53417 invoked by uid 99); 1 Nov 2007 21:37:04 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 01 Nov 2007 14:37:04 -0700 X-ASF-Spam-Status: No, hits=-0.0 required=10.0 tests=SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of lally.adam@gmail.com designates 209.85.198.190 as permitted sender) Received: from [209.85.198.190] (HELO rv-out-0910.google.com) (209.85.198.190) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 01 Nov 2007 21:37:07 +0000 Received: by rv-out-0910.google.com with SMTP id k20so561243rvb for ; Thu, 01 Nov 2007 14:36:42 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=beta; h=domainkey-signature:received:received:message-id:date:from:sender:to:subject:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references:x-google-sender-auth; bh=sTe6Hyau7ieph/0+ZPvm7qYbr9MmOdG7nnQ63k3/2xI=; b=twBrFg6orM16AhlWNlipTBfhc7y6hDHAmSfGuBCA3JL4wXHS+OBR4gy5qWhjCFxaKUa6Feg0hLHkZYloGOWiCRFInnO1vxxm62ntL0TJI6fKdNkdeuiNfe3gtv8AkfSkXNKw3ewuBHqmunEvGRrYaJt9US71YC8Doy06LGaJGbo= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=beta; h=received:message-id:date:from:sender:to:subject:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references:x-google-sender-auth; b=npMWdZhM5Q9RNeQR9SlTcs86Lf4jgIGCYsNKbH8UoE2Uo1AdIrR44G4rPiRgyVMkztR5L22E78qs0P8sHVdOjCYTn4iqWC0ifHY2ECStgTmSI4fqwefnA+oRSK+eWBxd7tDdeHcqCh5YlqV5qJW0DpNGxWxTUBM6QYHK8aMnMio= Received: by 10.141.74.17 with SMTP id b17mr554086rvl.1193953002717; Thu, 01 Nov 2007 14:36:42 -0700 (PDT) Received: by 10.141.28.6 with HTTP; Thu, 1 Nov 2007 14:36:42 -0700 (PDT) Message-ID: <2787e08a0711011436w2d9868cft74c074e2faec1527@mail.gmail.com> Date: Thu, 1 Nov 2007 17:36:42 -0400 From: "Adam Lally" Sender: lally.adam@gmail.com To: uima-user@incubator.apache.org Subject: Re: Set configuration parameters of a collection reader before it is initialized In-Reply-To: <0DBCCB475CDE864F8F6086D69BFC5D9FF06786@CALLISTO.ntdom.tk.informatik.tu-darmstadt.de> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline References: <0DBCCB475CDE864F8F6086D69BFC5D9FF06786@CALLISTO.ntdom.tk.informatik.tu-darmstadt.de> X-Google-Sender-Auth: 008e28991ef59ddd X-Virus-Checked: Checked by ClamAV on apache.org On 11/1/07, Torsten Zesch wrote: > > Is there any way to set the configuration parameters of a collection > reader before it is actually initialized? > Yes, it's possible to do this. Instead of parseResourceSpecifier, call parseCollectionReaderDescription. Then you can call methods on the CollectionReaderDescription object to change the parameter values. Effectively you're overriding the values that were in the descriptor, before instantiating your component. The methods to do this are something like: collectionReaderDescription.getCollectionReaderMetaData().getConfigurationParameterSettings().setParameterValue(name,value) But I didn't test that so I might have gotten it slightly wrong. -Adam