Return-Path: Delivered-To: apmail-lucene-java-dev-archive@www.apache.org Received: (qmail 47157 invoked from network); 14 Apr 2009 19:51:28 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 14 Apr 2009 19:51:28 -0000 Received: (qmail 60358 invoked by uid 500); 14 Apr 2009 19:51:27 -0000 Delivered-To: apmail-lucene-java-dev-archive@lucene.apache.org Received: (qmail 60272 invoked by uid 500); 14 Apr 2009 19:51:27 -0000 Mailing-List: contact java-dev-help@lucene.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: java-dev@lucene.apache.org Delivered-To: mailing list java-dev@lucene.apache.org Received: (qmail 60263 invoked by uid 99); 14 Apr 2009 19:51:27 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 14 Apr 2009 19:51:27 +0000 X-ASF-Spam-Status: No, hits=-0.0 required=10.0 tests=SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of markrmiller@gmail.com designates 209.85.221.134 as permitted sender) Received: from [209.85.221.134] (HELO mail-qy0-f134.google.com) (209.85.221.134) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 14 Apr 2009 19:51:17 +0000 Received: by qyk40 with SMTP id 40so1439465qyk.29 for ; Tue, 14 Apr 2009 12:50:56 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from :user-agent:mime-version:to:subject:references:in-reply-to :content-type:content-transfer-encoding; bh=mfYBy/mIH1BY8Z3pHKjt30twDDELxOWy+Fk4VYSh/74=; b=g8QFEpUcQg9OmK/FFyHtjLZ94QCwz7OqVdwMijCCqxmjSOYdANKjFuPxjg9F4mChay 7RV7GR44l25MhZP3FzbMjMvFNvkM0y1a7tYhNE+Oq4DTAfA1iW7WOYHMxTGrBcNxqU+4 OKitGWedPyqLDGKbSo8xHVwnOCOhUNaZhRD1w= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:user-agent:mime-version:to:subject:references :in-reply-to:content-type:content-transfer-encoding; b=SCg6U7fqM6Wvc4pqyUJUJ2vf4EGfeg0J1IkyGlAI2hSsXMYo0mgs5BUqcVbSj5kOCb yEnnXkan/hyFBSlO2HsbNQNDghSloKciy2gcD2g8nf5EOrfXMamEqT07lL7GkTIa8hXm clrG+zeR9Y+ALGJq+m8MKiZ5DtkyAVGF2ZpV4= Received: by 10.224.32.73 with SMTP id b9mr32218qad.6.1239738655933; Tue, 14 Apr 2009 12:50:55 -0700 (PDT) Received: from ?192.168.1.120? (ool-44c639d9.dyn.optonline.net [68.198.57.217]) by mx.google.com with ESMTPS id 4sm380440qwe.18.2009.04.14.12.50.54 (version=SSLv3 cipher=RC4-MD5); Tue, 14 Apr 2009 12:50:55 -0700 (PDT) Message-ID: <49E4E91E.2010304@gmail.com> Date: Tue, 14 Apr 2009 15:50:54 -0400 From: Mark Miller User-Agent: Thunderbird 2.0.0.21 (X11/20090409) MIME-Version: 1.0 To: java-dev@lucene.apache.org Subject: Re: IndexReader plugins References: <59b3eb370904121634y15a9c088ya8d4de80b43cc4cd@mail.gmail.com> <9ac0c6aa0904130614l7b35418dgd12465fa7fcdd098@mail.gmail.com> <59b3eb370904130644s435ac430j36ade49569eb528b@mail.gmail.com> <9ac0c6aa0904140334y49fe69a9sc5612ac4782c68a@mail.gmail.com> <59b3eb370904140452o439700f4o4caf50303df423de@mail.gmail.com> <20090414161635.GA17246@rectangular.com> <59b3eb370904140951j2ca8f589x25bcabdf90bbe8a7@mail.gmail.com> <49E4C82E.6090601@gmail.com> <59b3eb370904141122p496eb8bdy2aecfac2e63e07a3@mail.gmail.com> <9ac0c6aa0904141156l394a72ag629d703a15bee53@mail.gmail.com> <59b3eb370904141243k4713a036kbf5ca4ae91f52da6@mail.gmail.com> In-Reply-To: <59b3eb370904141243k4713a036kbf5ca4ae91f52da6@mail.gmail.com> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org Earwin Burrfoot wrote: > Michael McCandless wrote: > >> I gave the example to show the init vs inflight distinction, because >> inflight makes me nervous. >> > > I'm thinking of some (bad name follows) PluginBundle, that has > add/remove/inspect methods and constructor/method for filling it with > default Lucene components. > Then instead of component map you pass this bundle to IndexReader ctor. > > You gain typesafe method signatures I have a soft spot for, and don't > have to allow inflight reconfiguration for it. The only remaining > problem of 'init' way - static factory explosion, well, the more - the > merrier :) > > +1 Earwin. That sounds great. Static factory explosion is an ugly annoyance, but overall a better trade I think - inflight is complicated or brittle. -- - Mark http://www.lucidimagination.com --------------------------------------------------------------------- To unsubscribe, e-mail: java-dev-unsubscribe@lucene.apache.org For additional commands, e-mail: java-dev-help@lucene.apache.org