lucene-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Uwe Schindler" <...@thetaphi.de>
Subject RE: why is MTQ#getEnum protected
Date Wed, 15 Feb 2012 13:28:05 GMT
> On Wed, Feb 15, 2012 at 8:21 AM, Uwe Schindler <uwe@thetaphi.de> wrote:
> > Another cleaner fix would be to add a protected final method to
> RewriteMethod that calls this method from MTQ. So anything subclassing
> RewriteMethod can get the enum from inside the RewriteMethod class which
> is the "correct" way to handle it. Delegating to MTQ is then "internal".
> >
> 
> This sounds like the best solution to me.

... which is unfortunately not so easy to implement, as RewriteMethod is stateless and does
not know ist MTQ. Only the rewrite method gets it as parameter.

I'll think about it. We should fix this, so getEnum() can solely called from inside RewriteMethod.

Uwe


---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@lucene.apache.org
For additional commands, e-mail: dev-help@lucene.apache.org


Mime
View raw message