com.atlassian.bonnie
Class LuceneConnectionFactory

java.lang.Object
  extended bycom.atlassian.bonnie.LuceneConnectionFactory

public class LuceneConnectionFactory
extends java.lang.Object

Allow us to control the concrete class that clients use. Currently the ConcurrentLuceneConnection is in vogue.


Constructor Summary
LuceneConnectionFactory()
           
 
Method Summary
 ILuceneConnection createLuceneConnection(org.apache.lucene.store.Directory directory, org.apache.lucene.analysis.Analyzer analyzer)
          Return an instance of ILuceneConnection every time.
 ILuceneConnection createLuceneConnection(org.apache.lucene.store.Directory directory, org.apache.lucene.analysis.Analyzer analyzer, ILuceneConnection.Configuration configuration)
          Return an instance of ILuceneConnection every time.
 ILuceneConnection createLuceneConnection(java.lang.String path, org.apache.lucene.analysis.Analyzer analyzer)
          Return an instance of ILuceneConnection every time.
 ILuceneConnection createLuceneConnection(java.lang.String path, org.apache.lucene.analysis.Analyzer analyzer, ILuceneConnection.Configuration configuration)
          Return an instance of ILuceneConnection every time.
static LuceneConnectionFactory get()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

LuceneConnectionFactory

public LuceneConnectionFactory()
Method Detail

get

public static LuceneConnectionFactory get()

createLuceneConnection

public ILuceneConnection createLuceneConnection(java.lang.String path,
                                                org.apache.lucene.analysis.Analyzer analyzer,
                                                ILuceneConnection.Configuration configuration)
Return an instance of ILuceneConnection every time.

Throws:
LuceneException - if the path does not exist.

createLuceneConnection

public ILuceneConnection createLuceneConnection(org.apache.lucene.store.Directory directory,
                                                org.apache.lucene.analysis.Analyzer analyzer,
                                                ILuceneConnection.Configuration configuration)
Return an instance of ILuceneConnection every time.

Throws:
LuceneException - if the path does not exist.

createLuceneConnection

public ILuceneConnection createLuceneConnection(java.lang.String path,
                                                org.apache.lucene.analysis.Analyzer analyzer)
Return an instance of ILuceneConnection every time.

Throws:
LuceneException - if the path does not exist.

createLuceneConnection

public ILuceneConnection createLuceneConnection(org.apache.lucene.store.Directory directory,
                                                org.apache.lucene.analysis.Analyzer analyzer)
Return an instance of ILuceneConnection every time.

Throws:
LuceneException - if the path does not exist.


Copyright © 2006-2009 Atlassian Software Systems Pty Ltd. All Rights Reserved.