lucene-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Yonik Seeley (JIRA)" <>
Subject [jira] Commented: (LUCENE-1451) Can't create NIOFSDirectory w/o setting a system property
Date Wed, 12 Nov 2008 20:39:44 GMT


Yonik Seeley commented on LUCENE-1451:

The actual class used for making new instances of Directory is FSDirectory.IMPL, set via the
system property "org.apache.lucene.FSDirectory.class".

It seems like we should make it  possible to create multiple FSDirectory implementations of
different types in the same JVM.
The simplest workaround would be to create a
  protected static FSDirectory getDirectory(File file, LockFactory lockFactory, Class impl)
Subclasses could implement their own getDirectory calls that pass down the appropriate class.

Not the most elegant solution if one were starting from scratch, but it seems like it would
be completely backward compatible, while allowing NIOFSDirectory.getDirectory() to do what
it looks like it should do.

> Can't create NIOFSDirectory w/o setting a system property
> ---------------------------------------------------------
>                 Key: LUCENE-1451
>                 URL:
>             Project: Lucene - Java
>          Issue Type: Bug
>            Reporter: Yonik Seeley
>            Priority: Minor
> NIOFSDirectory.getDirectory() returns a FSDirectory object

This message is automatically generated by JIRA.
You can reply to this email to add a comment to the issue online.

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message