lucene-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Mark Miller <markrmil...@gmail.com>
Subject Re: IndexReader plugins
Date Tue, 14 Apr 2009 19:50:54 GMT
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


Mime
View raw message