org.tigris.scarab.util.word
Class SearchFactory

java.lang.Object
  extended byorg.tigris.scarab.util.word.SearchFactory

public class SearchFactory
extends java.lang.Object

Returns an instance of the SearchIndex specified in Scarab.properties

Version:
$Id: SearchFactory.java 10193 2006-06-30 12:49:42Z dabbous $
Author:
John D. McNally

Constructor Summary
SearchFactory()
           
 
Method Summary
static SearchIndex getInstance()
           
static void releaseInstance(SearchIndex searchIndex)
          Release a searchIndex after it as been looked up from @getInstance()
static void setSearchIndex(SearchIndex searchIndex)
          Needed for unit testing only
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SearchFactory

public SearchFactory()
Method Detail

getInstance

public static SearchIndex getInstance()
                               throws java.lang.InstantiationException
Throws:
java.lang.InstantiationException

releaseInstance

public static void releaseInstance(SearchIndex searchIndex)
Release a searchIndex after it as been looked up from @getInstance()

Parameters:
searchIndex -

setSearchIndex

public static void setSearchIndex(SearchIndex searchIndex)
Needed for unit testing only

Parameters:
searchIndex -


Copyright © 2000-2004 Tigris.org. All Rights Reserved.