maiolum.nxdb
Class XMLDataSourceConfigurator

java.lang.Object
  extended bymaiolum.nxdb.XMLDataSourceConfigurator

public class XMLDataSourceConfigurator
extends java.lang.Object

Configures given DataSource from XML file. This class loads XML file containing module data & index locations. For each module instantiates one IndexReader based on file given in the XML and adds that module into datasource.


Constructor Summary
XMLDataSourceConfigurator()
           
 
Method Summary
static void configure(java.lang.String uri, ExistDataSource dataSource)
          Configures given DataSource from XML file specified as String parameter
 PropertyExpander getPropertyExpander()
           
 void setPropertyExpander(PropertyExpander propertyExpander)
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

XMLDataSourceConfigurator

public XMLDataSourceConfigurator()
Method Detail

configure

public static void configure(java.lang.String uri,
                             ExistDataSource dataSource)
                      throws BackendException
Configures given DataSource from XML file specified as String parameter

Parameters:
uri - specifies URI of the XML from which will be the DataSource configured
dataSource - to be configured
Throws:
BackendException - if the DataSource cannot be configured (XML is corrupted etc)

getPropertyExpander

public PropertyExpander getPropertyExpander()
Returns:
Returns the propertyExpander.

setPropertyExpander

public void setPropertyExpander(PropertyExpander propertyExpander)
Parameters:
propertyExpander - The propertyExpander to set.