Regain 2.1.0-STABLE API

net.sf.regain.search.config
Class DefaultSearchConfigFactory

java.lang.Object
  extended by net.sf.regain.search.config.DefaultSearchConfigFactory
All Implemented Interfaces:
SearchConfigFactory

public class DefaultSearchConfigFactory
extends Object
implements SearchConfigFactory

Loads the search config from a XML file. The location of the XML file is specified by the init parameter "searchConfigFile".

Author:
Tilman Schneider, STZ-IDA an der FH Karlsruhe

Constructor Summary
DefaultSearchConfigFactory()
           
 
Method Summary
 SearchConfig createSearchConfig(PageRequest request)
          Creates the configuration of the search mask.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DefaultSearchConfigFactory

public DefaultSearchConfigFactory()
Method Detail

createSearchConfig

public SearchConfig createSearchConfig(PageRequest request)
                                throws RegainException
Creates the configuration of the search mask.

Specified by:
createSearchConfig in interface SearchConfigFactory
Parameters:
request - The page request. Used to get the "configFile" init parameter, which holds the name of the configuration file.
Returns:
The configuration of the search mask.
Throws:
RegainException - If loading failed.

Regain 2.1.0-STABLE API

Regain 2.1.0-STABLE, Copyright (C) 2004-2010 Til Schneider, www.murfman.de, Thomas Tesche, www.clustersystems.info