Konstantin Priblouda wrote:

and why constructor IndexReader(Directory) is protected? Is it really necessary, or it can be
relaxed? Factory methods are uncool. ( it means, if it would be public, then it would be
possible to drop a load of application code which does not need tests... )

It's protected since depending on the internal structure of your index you get different implementations of subclasses of IndexReader when you call the static open method. IndeReader itself is only an abstract class.

Christoph


--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]



Reply via email to